1.1.3 • Published 12 months ago

zen-rsync v1.1.3

Weekly downloads
-
License
MIT
Repository
github
Last release
12 months ago

♻️ Zen Rsync

A pure TypeScript implementation of the rsync algorithm

Installation

npm install zen-rsync

Usage

import { prepare, diff, apply } from 'zen-rsync';

const checksum = prepare(destFile); // you can specify block size as second argument (default: 1024)
// send checksum to source
const patches = diff(sourceFile, checksum);
// send patches to dest
const syncedFile = apply(destFile, patches);

Performance

This package was not designed to be fast. Since it's implemented fully in TypeScript, it's not as fast as the C implementation of rsync. I tried to use the best practices to make is less slow but I did not benchmark it 🤷.

Dependencies 🪶

This package has a single dependency etienne-dldc/erreur to define custom errors.

1.1.3

12 months ago

1.1.2

12 months ago

1.1.1

1 year ago

1.1.0

1 year ago

1.0.2

1 year ago

1.0.1

1 year ago

1.0.0

1 year ago