hashmo
v2.0.0
Published
CLI to write a file with a timestamp-based hash (plaintext, PHP, or JSON).
Downloads
126
Maintainers
Readme
hashmo
CLI to write a file with a timestamp-based hash (plaintext, PHP, or JSON).
Requires Node.js 20 or later.
Install
npm install --save-dev hashmoUsage
Default: writes hash.txt in the current directory with a hex timestamp (e.g. 1901657805c). On success, the written file path is printed unless you pass --quiet.
hashmoPHP output in a build folder:
hashmo --type=php --destination=./build/ --output=hash.php<?php return "1901657805c";JSON output:
hashmo --type=json -d ./dist -o version.json{"hash":"1901657805c"}Options
| Option | Description |
| --- | --- |
| -t, --type | Output type: plaintext, php, or json (default: plaintext) |
| -d, --destination | Destination directory (default: current directory) |
| -o, --output | Output filename (default: hash.txt) |
| --raw | Use raw decimal timestamp instead of hex |
| -q, --quiet | Do not print the written file path |
| -v, --version | Show version |
| -h, --help | Show help |
License
Licensed under MIT.
Copyright
© 2026 Nilambar Sharma
