ihash
TypeScript icon, indicating that this package has built-in type declarations

0.1.10 • Public • Published

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

Package Sidebar

Install

npm i ihash

Weekly Downloads

3

Version

0.1.10

License

MIT

Unpacked Size

4.55 kB

Total Files

7

Last publish

Collaborators

  • scriptpower