node-zstd
ZSTD lossless compression algorithm bindings for Node.js.
Installation
$ npm install zstd
In case of npm install error:
gyp: Call to 'node -e "require('nan')"' returned exit status 127. while trying to load binding.gyp
Try to sudo apt-get install nodejs-legacy
or sudo ln -s "$(which nodejs)" /usr/bin/node
.
Usage
var zstd = ; var data = 1000;data; var compressed = zstd;var decompressed = zstd; console;console; //Compressed: 25//Decompressed: 1000
Tests
$ npm test
License
MIT