Skip to content

dldc-packages/librsync

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

23 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 { 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

License

Stars

Watchers

Forks

Packages

No packages published