Skip to content

Latest commit

 

History

History
23 lines (20 loc) · 565 Bytes

README.md

File metadata and controls

23 lines (20 loc) · 565 Bytes

Simple8js

Typescript implementation of the simple-8 algorithm for integer compression.
Based on this java implementation

Installation

Install the package using the npm install command:
$ npm install simple8js

Usage

The package has a simple compress/decompress usage

Compress

  const data = [1n, 2n, 3n]
  const compressed: bigint[] = Simple8B.compress(data)

Decompress

  const compressedData = [1n<<60n]
  const data: bigint[] = Simple8B.decompress(compressedData)

License

MIT