Skip to content
dldc-packagesPublic

About

Librsync using wasm

Resources

Stars

8 stars

Watchers

1 watching

Forks

Repository files navigation

♻️ Librsync

This is a WASM build of the fast_rsync crate implementing the rsync algorithm

Installation

npm i @dldc/librsync

Usage

import { apply, diff, signature } from "@dldc/librsync";

const checksum = signature(destFile); // you can specify block size as second argument
// send checksum to source...
const patch = diff(checksum, sourceFile);
// send patch to dest...
const syncedFile = apply(destFile, patch);

About

Librsync using wasm

Resources

Stars

8 stars

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages