Skip to content

dldc-packages/librsync

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

♻️ Librsync

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

Installation

deno add @jsr:@dldc/librsync

Usage

import { signature, diff, apply } 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);