MCPcopy Create free account
hub / github.com/cunzaizhuyi/hashplate-cn

github.com/cunzaizhuyi/hashplate-cn @main

Chat with this repo
repository ↗ · DeepWiki ↗ · + Follow
4 symbols 13 edges 7 files 0 documented · 0% updated 2y ago★ 892 open issues

Browse by type

Functions 3 Types & classes 1
What it actually does AI analysis from the code graph — generated when you open this
loading…
README

hashplate-cn

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

Use

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

const hash = hashplate("Hello World!");
// returns "🍢 渝F·WGVA2 🪣"

Format

The hash is generated in the following format:

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

You can remove emoji by passing the second parameter.

import { hashplate } from "hashplate-cn";

const hash = hashplate("Hello World!", {
    hasEmoji: false,
});
// returns "渝F·WGVA2"

Why?

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

Credit

forked from Project hashplate

Extension points exported contracts — how you extend this code

browse all types & interfaces →

Core symbols most depended-on inside this repo

browse all functions →

Shape

Function 3
Interface 1

Languages

TypeScript100%

Modules by API surface

src/prng.ts2 symbols
src/index.ts2 symbols

For agents

$ claude mcp add hashplate-cn \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact

Ask about this repo answers extend the page