UNPKG

@thi.ng/base-n

Version:

Arbitrary base-n conversions w/ presets for base8/16/32/36/58/62/64/83/85, support for bigints and encoding/decoding of byte arrays

12 lines (11 loc) 252 B
const D = "123456789"; const U = "ABCDEFGHJKLMNPQRSTUVWXYZ"; const L = "abcdefghijkmnopqrstuvwxyz"; const B58_CHARS_UC = D + U + L; const B58_CHARS_LC = D + L + U; const B58_CHARS = B58_CHARS_UC; export { B58_CHARS, B58_CHARS_LC, B58_CHARS_UC };