ansi-toradixof
v0.1.6
Published
Get the Numerical Representation of any string given a radix of 2 to 36.
Downloads
24
Maintainers
Readme
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:
- 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.