1.0.10 • Published 3 years ago

vcdiff-wasm v1.0.10

Weekly downloads
12
License
MIT
Repository
github
Last release
3 years ago

Example

async function testvcdiff () {
    const { encoder, decoder } = await require('vcdiff-wasm')()

    const delta = encoder(Buffer.from('abc'), Buffer.from('defabcfhi'))
    console.log(delta)

    const target = decoder(Buffer.from('abc'), delta)
    console.log(target)
}

Only de/encoder

async function onlyencoder () {
    const encoder = await require('vcdiff-wasm/encoder')()
    return encoder(Buffer.from('abc'), Buffer.from('defabcfhi'))
}

async function onlydecoder () {
    const decoder = await require('vcdiff-wasm/decoder')()
    return decoder(Buffer.from('abc'), delta)
}
1.0.10

3 years ago

1.0.9

6 years ago

1.0.8

6 years ago

1.0.7

6 years ago

1.0.6

6 years ago

1.0.5

6 years ago

1.0.4

6 years ago

1.0.3

6 years ago

1.0.2

6 years ago

1.0.1

6 years ago

1.0.0

6 years ago