hashmo
v1.0.3
Published
Generate hash file.
Readme
hashmo
Create a file with hashed value obtained from timestamp.
Hashed value would look like 1901657805c or similar.
Install
npm install --save-dev hashmoExamples
Generate file named hash.txt with encoded timestamp in root folder.
hashmoGenerate a PHP file named hash.php with encoded content in build folder.
hashmo --type=php --destination=./build/ --output=hash.phpOutput file would look like:
<?php return "1901657805c";Options
| Argument | Description | | --- | --- | | -t, --type | Output type (choices: "plaintext", "php", default: "plaintext") | | -d, --destination | Destination directory. Defaults to root directory. | | -o, --output | Output file name with extension (default: "hash.txt") | | --raw | Keep raw timestamp without encoding. | | -v, --version | Output the current version. | | -h, --help | Display help for command. |
Copyright and License
This project is licensed under MIT.
2024 © Nilambar Sharma.
