Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/ernilambar/hashmo
Generate a file with hashed timestamp value
https://github.com/ernilambar/hashmo
npm npm-package npmjs
Last synced: 25 days ago
JSON representation
Generate a file with hashed timestamp value
- Host: GitHub
- URL: https://github.com/ernilambar/hashmo
- Owner: ernilambar
- Created: 2024-06-12T09:02:47.000Z (5 months ago)
- Default Branch: main
- Last Pushed: 2024-06-14T11:12:46.000Z (5 months ago)
- Last Synced: 2024-09-29T15:41:30.637Z (about 1 month ago)
- Topics: npm, npm-package, npmjs
- Language: JavaScript
- Homepage: https://www.npmjs.com/package/hashmo
- Size: 77.1 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# hashmo
Create a file with hashed value obtained from timestamp.
Hashed value would look like `1901657805c` or similar.
## Install
```sh
npm install --save-dev hashmo
```
## ExamplesGenerate file named `hash.txt` with encoded timestamp in root folder.
```sh
hashmo
```Generate a PHP file named `hash.php` with encoded content in `build` folder.
```sh
hashmo --type=php --destination=./build/ --output=hash.php
```Output file would look like:
```php
| 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](https://opensource.org/license/MIT).
2024 © [Nilambar Sharma](https://www.nilambar.net).