typid
v0.0.1
Published
Simple typed IDs with 80 bits of randomness and short, copyable encoding.
Downloads
2
Readme
typid
Simple Stripe like IDs, non sortable. Defaults to 80 bits of randomness[^1] (12-14 characters).
import typid from "typid";
const id = typid("user");
// => user_5ozBxXrc2vRXiQ
const privateKey = typid("pk", 128);
[^1] On average, it takes around 22 trillion generated IDs to get a duplicate.