1.0.10 • Published 4 years ago

vcdiff-wasm v1.0.10

Weekly downloads
12
License
MIT
Repository
github
Last release
4 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

4 years ago

1.0.9

6 years ago

1.0.8

6 years ago

1.0.7

7 years ago

1.0.6

7 years ago

1.0.5

7 years ago

1.0.4

7 years ago

1.0.3

7 years ago

1.0.2

7 years ago

1.0.1

7 years ago

1.0.0

7 years ago