ansi-toradixof

0.1.6 • Public • Published

ansi-toradixof

Get the Numerical Representation of any string given a radix of 2 to 36.

In the browser with no ES6 Imports/Exports:

Please use the following API toRadixOf or window.toRadixOf

This module has the followind protoype:

  1. toRadixOf(text:string,radix:number = 10, truncate == true )
    var saying = 'Hell is a place for no man';
    var hexidecimal = 16
    console.log(toRadixOf(saying,hexidecimal)); // return a string
    console.log(toRadixOf(saying,hexidecimal,false))

TODO:

  1. Add a way to check.
  2. Change type option to truncate.

Package Sidebar

Install

npm i ansi-toradixof

Weekly Downloads

15

Version

0.1.6

License

ISC

Unpacked Size

671 kB

Total Files

8

Last publish

Collaborators

  • okpalan86