Typescript implementation of the simple-8 algorithm for integer compression.
Based on this java implementation
Install the package using the npm install command:
$ npm install simple8js
The package has a simple compress/decompress usage
const data = [1n, 2n, 3n]
const compressed: bigint[] = Simple8B.compress(data)
const compressedData = [1n<<60n]
const data: bigint[] = Simple8B.decompress(compressedData)
MIT