hashon-cmdli
v1.1.0
Published
A CMDLI for encrypting, decrypting and securing JSON using hashon
Downloads
4
Readme
# hashon-


**hashon-cmdli** is a simple and powerful tool—available both as a CMDLI and as a module—that handles hash generation and JSON-related operations. It helps you quickly hash data, format, and validate JSON files.
---
## Installation
Install globally to use the CMDLI:
```bash
npm install -g hashon-cmdliOr install locally as a dependency to use programmatically:
npm install hashon-cmdliUsage
CMDLI
Generate a hash, format a JSON file, or use the encrypt/decrypt/secure commands directly from your terminal:
Available commands
hash <text>Generate a hash value from the given text.format <file>Format a JSON file and print the pretty-printed output.encrypt <file>Encrypt a JSON file and save the output as<file>.sec.json.decrypt <file>Decrypt a.sec.jsonfile and save the output as<file>.decrypted.json.secure <file>Hash all values in a JSON file and save the output as<file>.hashed.json.
Examples
Generate a hash from text:
hashon-cmdli hash "Your text here"Format a JSON file:
hashon-cmdli format ./data.jsonEncrypt a JSON file:
hashon-cmdli encrypt data.jsonDecrypt an encrypted JSON file:
hashon-cmdli decrypt data.sec.jsonSecure (hash) values in a JSON file:
hashon-cmdli secure data.jsonAs a module in your Node.js project
Import and use functions programmatically:
const { hash, format, validate } = require('hashon-cmdli');
hash('Your text here')
.then(result => console.log(result))
.catch(err => console.error(err));
format('./data.json')
.then(formattedJson => console.log(formattedJson))
.catch(err => console.error(err));Features
- Generate hash values from text or files
- Format and validate JSON data
- Encrypt, decrypt, and secure JSON files
- Works as both CMDLI and programmatic API
- Lightweight and easy to integrate
License
Custom "MIT-NoSell" License
This software is provided under a modified MIT license that prohibits resale or inclusion in commercial products without explicit permission.
You are free to use, copy, modify, and distribute the code for non-commercial purposes.
See the LICENSE file for full terms.
