Skip to content

jhermsmeier/node-apple-data-compression

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

27 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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 ) => {
    // ...
  })