hash-cli

Easily hash files from the command line

View the Project on GitHub btleffler/node-hash-cli

hash-cli

A simple command line tool to hash files.

Installation

$ npm install -g hash-cli

Usage

Usage: hash-cli [options]

  Options:

    -h, --help                             output usage information
    -V, --version                          output the version number
    -a, --algorithm [algo]                 Algorithm to hash with. Defaults to sha1
    -d, --directory [dir]                  Directory to hash
    -f, --files [file[,file[,file[...]]]]  Files to hash
    --createOutputFiles                    Create hash files: 'FILENAME.EXT.ALG'
    --list                                 List available algorithms
    --debug                                Debug on errors

Basic

$ hash-cli --algorithm sha1 --directory dir/to/hash --files file1,file2,file3

Hash every file in the directory

$ hash-cli -a md5

Force creation of hash files

$ hash-cli -a sha256 -f file1.txt --createOutputFiles

List available hashing algorithms

$ hash-cli --list

Debugging

$ hash-cli [options] --debug

License

MIT