Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

@idigi/toint-tostr

karbal7ISC1.0.2

string auto-incrementing

toStr, toInt, autoincr, toString, toBigInt, toInteger

readme

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