@kszongic/hash-file-cli
v1.3.0
Published
Hash files using MD5, SHA-1, SHA-256, SHA-512 from the command line. Zero dependencies.
Maintainers
Readme
@kszongic/hash-file-cli
Hash files from the command line. Supports MD5, SHA-1, SHA-256, and SHA-512. Zero dependencies.
Install
npm install -g @kszongic/hash-file-cliUsage
# SHA-256 (default)
hash-file package.json
# a1b2c3... package.json
# MD5
hash-file -a md5 *.txt
# SHA-512
hash-file -a sha512 image.png
# Verify checksums
hash-file -c checksums.txtOptions
| Flag | Description | Default |
|------|-------------|---------|
| -a, --algorithm <alg> | md5, sha1, sha256, sha512 | sha256 |
| -c, --check <file> | Verify hashes from checksum file | — |
| -h, --help | Show help | — |
| -v, --version | Show version | — |
Output Format
Compatible with sha256sum / md5sum:
<hash> <filename>License
MIT © 2026 kszongic
