JSPM

apple-data-compression

0.4.1
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 3961
  • Score
    100M100P100Q181556F
  • License MIT

Apple Data Compression (ADC) Scheme

Package Exports

  • apple-data-compression

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (apple-data-compression) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

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

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