0.1.6 • Published 2 years ago

ansi-toradixof v0.1.6

Weekly downloads
-
License
ISC
Repository
github
Last release
2 years ago

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.