apple-data-compression
v0.4.1
Published
Apple Data Compression (ADC) Scheme
Downloads
16,257
Maintainers
Readme
Apple Data Compression (ADC) Scheme
The Apple Data Compression (ADC) scheme relies on both run-length encoding and pointing to data in a sliding dictionary.
Install via npm
$ npm install --save apple-data-compression
Related Modules
Usage
var adc = require( 'apple-data-compression' )
Sync decompression
var result = adc.decompress( buffer )
Streaming
var transform = new adc.Decompressor()
// OR var transform = adc.createDecompress()
fs.createReadStream( filename )
.pipe( transform )
.on( 'data', ( chunk ) => {
// ...
})