1.0.10 • Published 2 years ago

vcdiff-wasm v1.0.10

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

2 years ago

1.0.9

5 years ago

1.0.8

5 years ago

1.0.7

5 years ago

1.0.6

5 years ago

1.0.5

5 years ago

1.0.4

5 years ago

1.0.3

5 years ago

1.0.2

5 years ago

1.0.1

5 years ago

1.0.0

5 years ago