UNPKG

identigenium

Version:

Generate unique identifiers with configurable character sets and prefixes. Super tiny (tree-shakeable, base is 142 bytes, minified + bzipped)

14 lines (13 loc) 587 B
export const UpperChars = "ABCDEFGHIJKLMNOPQRSTUVWXYZ"; export const LowerChars = "abcdefghijklmnopqrstuvwxyz"; export const Chars = LowerChars + UpperChars; export const Numbers = "0123456789"; export const AlphaNumeric = Chars + Numbers; export const Base64 = AlphaNumeric + "+/"; export const Base64URL = AlphaNumeric + "-_"; export const Braces = "<{[()]}>"; export const Slashes = "\\/"; export const Separators = ",.:;?!"; export const Quotes = "'\""; export const Miscellaneous = "@#%$|^~_+-*="; export const SpecialChars = Braces + Slashes + Separators + Quotes + Miscellaneous;