vcdiff-decoder

0.2.1 • Public • Published

vcdiff-decoder

Pure JavaScript vcdiff decoder that works with binary deltas from Google's open-vcdiff

(In Development)

const vcdiff = require('vcdiff-decoder');
 
let target = vcdiff.decodeSync(deltaBuffer, new Buffer('some dictionary string buffer'));
console.log(target.toString());

API

vcdiff.decodeSync(delta, source)

  • delta Buffer
  • source Buffer

Returns a Buffer object of the target.

delta is the binary encoding of the information needed to transform the source to the target. It is encoded as vcdiff, as specified in RFC 3284

source is the group of bytes to transform into the target. In delta encoding, this probably an old, cached version.

vcdiff.decode(delta, source)

Same as above except returns a Promise that either resolves with the target Buffer or rejects with an error.

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 0.2.1
    0
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 0.2.1
    0
  • 0.2.0
    0
  • 0.1.0
    0

Package Sidebar

Install

npm i vcdiff-decoder

Weekly Downloads

0

Version

0.2.1

License

MIT

Last publish

Collaborators

  • wmsmacdonald