An open API service indexing awesome lists of open source software.

https://github.com/131/base-convertor


https://github.com/131/base-convertor

Last synced: 8 months ago
JSON representation

Awesome Lists containing this project

README

          

# Base conversion

Convert data from any base to any base

# API/usage
```

var convert = require('base-convertor');
//convert(data_string, input_chars, output_chars)

//display 17 (base 10)
console.log(convert('10001', '01', '0123456789').toString());

//display 10001 (binary format)

console.log(convert('17', '0123456789', '01').toString());

```

# Credits
* [131](mailto:131.js@cloudyks.org)

# Keywords / shout box
base, conversion, bin2hex, hex2bin, bin2dec, hex2dec, dec2bin, dex2hex, dec2dec