snappy-native

Google Snappy Compression In Native Bindings.

Usage no npm install needed!

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

README

Snappy Native

npm npm NPM

Google Snappy Running In Native Bindings

NPM

Installation

~ npm install snappy-native --save

Usage

const snappy = require('snappy-native')

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

Pure Javascript

snappy-pure Implements Snappy In Pure JavaScript