snappy-pure

Google Snappy Compression In Pure JavaScript.

Usage no npm install needed!

<script type="module">
  import snappyPure from 'https://cdn.skypack.dev/snappy-pure';
</script>

README

Snappy-Pure

npm npm NPM

Google Snappy Running In Pure JavaScript

NPM

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