4.0.1 • Published 10 days ago

@dldc/rsync v4.0.1

Weekly downloads
-
License
MIT
Repository
github
Last release
10 days ago

♻️ Rsync

A pure TypeScript implementation of the rsync algorithm

Installation

npm install @dldc/rsync

Usage

import { prepare, diff, apply } from '@dldc/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 it less slow but I did not benchmark it 🤷.

Dependencies 🪶

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

4.0.1

10 days ago

4.0.0

19 days ago

3.0.4

28 days ago

3.0.3

3 months ago

3.0.2

5 months ago

3.0.1

5 months ago

3.0.0

6 months ago

2.0.1

7 months ago

2.0.0

7 months ago

1.1.7

8 months ago

1.1.6

10 months ago

1.1.5

10 months ago

1.1.4

11 months ago