README
Snappy-Pure
Google Snappy Running In Pure JavaScript
Installation
~ npm install snappy-pure --save
Usage
const snappy = require('snappy-pure')
const compressed = snappy.compress('Hello World')
console.log('Compressed: ', compressed)
//==> <Buffer 0b 28 48 65 6c>
const uncompressed = snappy.uncompress(compressed)
console.log('Uncompressed: ', uncompressed.toString())
//==> Hello World