Skip to main content

number-wizard

A bunch of functions to convert numbers into strings (or other numbers) of required format.

Some functions work with strings too because I am cool.

How to run

import {AddComma, AddZero} from "https://deno.land/x/numwizard@v1.0.0/mod.ts"

// Add Commas
AddComma(123456789) // "123,456,789"
AddComma(123456789, "in") // "12,34,56,789"

// Add Zeros
AddZero(1234, 9) // "000001234"