1.0.2 • Published 2 years ago

@idigi/toint-tostr v1.0.2

Weekly downloads
-
License
ISC
Repository
-
Last release
2 years ago

Import

import { toInt, toStr, toBigInt } from "@idigi/toint-tostr";

toStr

console.info("toStr: 12", toStr(12)) // c

toInt

console.info("toInt: c", toInt("c")) // 12

from BigInt => toStr

console.info("toStr: 3507380638424220481302070744480563n", toStr(3507380638424220481302070744480563n)) //p7s6swwkCd277yC5R

from Str => toBigInt

console.info("toBigInt: p7s6swwkCd277yC5R", toBigInt("p7s6swwkCd277yC5R")) // 3507380638424220481302070744480563n