@anio-js-foundation/convert-to-base
v1.0.0
Published
Convert a number to a different base.
Downloads
8
Readme
@anio-js-foundation/convert-to-base
Convert a number to a different base.
import convertToBase from "@anio-js-foundation/convert-to-base"
const alphabet = "abcdefghijklmnopqrstuvwxyz"
// returns "bzl"
console.log(convertToBase(1337, alphabet.length, alphabet))