apple-data-compression

Apple Data Compression (ADC) Scheme

Downloads in past

Stats

StarsIssuesVersionUpdatedCreatedSize
apple-data-compression
620.4.16 years ago7 years agoMinified + gzip package size for apple-data-compression in KB

Readme

Apple Data Compression (ADC) Scheme
npm npm license npm downloads build status
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 ) => {
    // ...
  })