1.1.0 • Published 11 months ago

hashplate v1.1.0

Weekly downloads
-
License
MIT
Repository
github
Last release
11 months ago

hashplate

A tiny and fast lib to generate human-readable hash from a string in the style of license plates.

Use

pnpm add -D hashplate
import { hashplate } from "hashplate";

const hash = hashplate("Hello World!");
// returns "🦐 GP-150-UJ 🪣"

Format

The hash is generated in the following format:

<emoji> <2 uppercase letters>-<3 digits>-<2 uppercase letters> <emoji>

Why?

I needed a way to generate a hash that was readable and easy to recognize to anonymize data. This is the result.

1.1.0

11 months ago

1.0.0

1 year ago