javascript-number-converter

1.0.2 • Public • Published

All-in-one-number-converter

install package

npm i all-in-one-number-converter

All number system conversion at one place

Now no need to worry about number conversion or do any hack. Using this package simple all base conversion is possible including Roman. Pure Javascript so can be used in any project using Javascript

Available conversions:

  • ### Binary: import {toBinary} from 'all-in-one-number-converter'; const binaryConverted = toBinary(number,curbase)

  • ### Decimal: import {toDecimal} from 'all-in-one-number-converter'; const decimalConverted = toDecimal(number,curbase)

  • ### Hexadecimal: import {toHexadecimal} from 'all-in-one-number-converter'; const hexaDecimalConverted = toHexadecimal(number,curbase)

  • ### Octal: import {toOctal} from 'all-in-one-number-converter'; const octalConverted = toOctal(number,curbase)

  • ### Roman: import {toRoman} from 'all-in-one-number-converter' const romanConversion = toRoman(number,curbase)

  • ### Any Base: import {toNewBase} from 'all-in-one-number-converter'; const baseConverted = toNewBase(number,curbase,newbase)

Any issues with this package please raise javascript-number-converter

Package Sidebar

Install

npm i javascript-number-converter

Weekly Downloads

4

Version

1.0.2

License

MIT

Unpacked Size

9.36 kB

Total Files

13

Last publish

Collaborators

  • pradyumna