Skip to content

Latest commit

 

History

History
executable file
·
23 lines (17 loc) · 588 Bytes

File metadata and controls

executable file
·
23 lines (17 loc) · 588 Bytes

♻️ Librsync

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

Installation

deno add @jsr:@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);