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) 263 B
import { defBase } from "./base.js"; import * as c from "./chars/16.js"; export * from "./chars/16.js"; const BASE16_UC = defBase(c.B16_UC_CHARS); const BASE16_LC = defBase(c.B16_LC_CHARS); const BASE16 = BASE16_LC; export { BASE16, BASE16_LC, BASE16_UC };