0.0.1 • Published 9 years ago
filessert v0.0.1
Filessert
A simple (CLI) tool to compare two files
Filessert uses Node.js’s crypto library for hash comparison, so make sure you’re using a Node.js build that includes support for the crypto module.
Usage
npm install --save-dev filessertconst filessert = require('filessert');
filessert(file1, file2).then(() => {
console.log('Yay!');
}).catch(() => {
console.log('Oh no!');
});CLI
npm install -g filessert$ filessert test1.txt test1.txtoptions
algorithm (string)
Specifies the hash algorithm to be used for comparison (see Node.js’s
cryptolibrary)
const filessert = require('filessert');
filessert(file1, file2, {
algorithm: 'whirlpool'
}).then(() => {
console.log('Yay!');
}).catch(() => {
console.log('Oh no!');
});$ filessert test1.txt test1.txt --algorithm=whirlpoolChangelog
- 0.0.1
- Initial version
License
Copyright (c) 2017 Thomas Rasshofer
Licensed under the MIT license.
See LICENSE for more info.
0.0.1
9 years ago