rdiff simple binding in node.js
http://linux.die.net/man/1/rdiff
pre
install librsync ~0.9.7
or >=1.0.0
.
example
the sync api
// a new file contains "hello"var a = "a.txt"; // a file contains "hello world"var b = "b.txt"; // `a` wants to be `b` rdiff;rdiff; // the `a.patched` contains "hello world"rdiff;
do the same with async api
rdiff;
warning
it doesn't do file existence checking yet.
license
MIT