ihash
Get the hash-sum of a given file, with low memory usage, even on huge files.
Installation
npm i -g ihash
Usage
As a command line tool
examples
# md5
$ ihash readme.md
3e7c3c57ccf632650e3ad9b0aa694b47
# -a, --algorithm
$ ihash readme.md -a md5
$ ihash readme.md --algorithm md5
3e7c3c57ccf632650e3ad9b0aa694b47
# hash one file
$ ihash readme.md
# hash dir files
$ ihash some/dir/name
$ ihash some/dir/name -d 2
$ ihash some/dir/name --depth 2
flags
-
-a, --algorithm
: hashing algorithms, e.g. md5, sha1, sha256, sha512 -
-d, --depth
: only travel to max depth.
License
MIT