Skip to content
/ ids Public

Short, obfuscated, collision-proof, reversible IDs.

License

Notifications You must be signed in to change notification settings

node-prism/ids

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ids

NPM version

Short, obfuscated, collision-proof, reversible IDs.

import ID from "@prsm/ids";

// Provide your own alphabet with URL-friendly characters.
ID.alphabet = "GZwBHpfWybgQ5d_2mM-jh84K69tqYknx7LN3zvDrcSJVRPXsCFT";

ID.encode(12389125); // phsV8T
ID.decode("phsV8T"); // 12389125

About

Short, obfuscated, collision-proof, reversible IDs.

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published