fc

file-compare

Compare two files hash values

Showing:

Popularity

Downloads/wk

195

GitHub Stars

6

Maintenance

Last Commit

5yrs ago

Contributors

4

Package

Dependencies

1

License

Type Definitions

Tree-Shakeable

No?

Categories

Readme

file-compare

Stability - 2 Unstable

Compare two files hash values

API

compare(file1, file2, [algorithm], function(result))

Compares file1 hash to file2 hash and callback function gets a boolean result 'true' on a match
 * usage: compare(file1, file2, [algo], callback);
 * where:
 *    file1 - required string path to file 1
 *    file2 - required string path to file 2
 *    algo - option string algorithm for hash computation
 *    callback - required callaback(copied, err)
 *    where: 
 *       copied - boolean indicating if compare succeeded
 *       err - Error if there was a problem with the compare
Optional [algorithm] is a string indicator of the type of hash to use (ie. 'sha1', 'md5', etc.)

Rate & Review

Great Documentation0
Easy to Use0
Performant0
Highly Customizable0
Bleeding Edge0
Responsive Maintainers0
Poor Documentation0
Hard to Use0
Slow0
Buggy0
Abandoned0
Unwelcoming Community0
100
No reviews found
Be the first to rate

Alternatives

No alternatives found

Tutorials

No tutorials found
Add a tutorial