npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

hashon-cmdli

v1.1.0

Published

A CMDLI for encrypting, decrypting and securing JSON using hashon

Downloads

4

Readme

# hashon-

![npm version](https://img.shields.io/npm/v/hashon-cmdli.svg)
![license](https://img.shields.io/npm/l/hashon-cmdli.svg)

**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-cmdli

Or install locally as a dependency to use programmatically:

npm install hashon-cmdli

Usage

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.json file 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.json

Encrypt a JSON file:

hashon-cmdli encrypt data.json

Decrypt an encrypted JSON file:

hashon-cmdli decrypt data.sec.json

Secure (hash) values in a JSON file:

hashon-cmdli secure data.json

As 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.