@idigi/toint-tostr

1.0.2 • Public • Published

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

/@idigi/toint-tostr/

    Package Sidebar

    Install

    npm i @idigi/toint-tostr

    Weekly Downloads

    1

    Version

    1.0.2

    License

    ISC

    Unpacked Size

    6.26 kB

    Total Files

    6

    Last publish

    Collaborators

    • karbal