0.0.1 • Published 7 years ago

filessert v0.0.1

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

Filessert

A simple (CLI) tool to compare two files

Build Status Coverage Status Dependency Status Dependency Status

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 filessert
const filessert = require('filessert');

filessert(file1, file2).then(() => {
  console.log('Yay!');
}).catch(() => {
  console.log('Oh no!');
});

CLI

npm install -g filessert
$ filessert test1.txt test1.txt

options

algorithm (string)

Specifies the hash algorithm to be used for comparison (see Node.js’s crypto library)

const filessert = require('filessert');

filessert(file1, file2, {
  algorithm: 'whirlpool'
}).then(() => {
  console.log('Yay!');
}).catch(() => {
  console.log('Oh no!');
});
$ filessert test1.txt test1.txt --algorithm=whirlpool

Changelog

  • 0.0.1
    • Initial version

License

Copyright (c) 2017 Thomas Rasshofer
Licensed under the MIT license.

See LICENSE for more info.