GitXplorerGitXplorer
i

vcdiff-wasm

public
3 stars
1 forks
0 issues

Commits

List of commits on branch master.
Unverified
fdff0c0ada6dd9795f2647d7ce7da84950dbe27c

v1.0.10

ii404788 committed 3 years ago
Unverified
c42cbae86c4b579d2250a25adcce167ee7a696cb

Fix submodule source

ii404788 committed 3 years ago
Verified
34a91d5568ee624e44e6649d953343d9ff5bcd12

Merge pull request #1 from poppa/master

ii404788 committed 3 years ago
Unverified
7651848db21509271548ee21ba9f638d16b25865

Explicitly destroy the buffer pointers

ppoppa committed 3 years ago
Verified
adb3c35267e38041ca9171a1eff0913626fc755a

Create LICENSE

ii404788 committed 3 years ago
Unverified
8582b2b8e9e22e94a5ccdf22b3a4819080e3a036

Move to single file js/wasm

ii404788 committed 5 years ago

README

The README file for this repository.

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)
}