4.0.1 • Published 2 years ago

patchfile v4.0.1

Weekly downloads
525
License
MIT
Repository
github
Last release
2 years ago

Patchfile

Patch file with given diff.

Install

npm i patchfile

How to use?

const daffy = require('daffy');
const patchfile = require('patchfile');
const patch = daffy.createPatch('hello', 'hello world');
const tryToCatch = require('try-to-catch');

/* patch file thet not bigger then 2kb */
const [e] = await tryToCatch(patchfile, 'hello.txt', patch, {
    size: 2048,
});

if (e)
    console.error(e.message);

License

MIT

4.0.1

2 years ago

4.0.0

2 years ago

3.1.0

3 years ago

3.0.0

5 years ago

2.0.4

7 years ago

2.0.3

7 years ago

2.0.2

7 years ago

2.0.1

7 years ago

2.0.0

7 years ago

1.0.10

7 years ago

1.0.9

8 years ago

1.0.8

8 years ago

1.0.7

10 years ago

1.0.6

10 years ago

1.0.5

10 years ago

1.0.4

10 years ago

1.0.3

10 years ago

1.0.2

10 years ago

1.0.1

10 years ago

1.0.0

10 years ago