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
var adc = require( 'apple-data-compression' )
var result = adc.decompress( buffer )
var transform = new adc.Decompressor()
// OR var transform = adc.createDecompress()
fs.createReadStream( filename )
.pipe( transform )
.on( 'data', ( chunk ) => {
// ...
})