ansi-toradixof
Get the Numerical Representation of any string given a radix of 2 to 36.
In the browser with no ES6 Imports/Exports:
toRadixOf
or window.toRadixOf
Please use the following API This module has the followind protoype:
- 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:
- Add a way to check.
- Change type option to truncate.