0.1.1 • Published 10 years ago

baseconverter v0.1.1

Weekly downloads
6
License
MIT
Repository
github
Last release
10 years ago

Baseconverter

Convert any string from one set of characters to another set of characters;

Call

convert(string, base_of_string, base_of_output);

This returns the converted string.

  • string is the string you want to convert.
  • base_of_string is a string containing the characters string is based on.
  • base_of_output is a string containing the characters the returned string is based on.

Example

decimal to hexadecimal conversion

var convert = require("baseconverter");

var input_base = '0123456789';
var output_base = '0123456789ABCDEF';

var hexvalue = convert('43', input_base, output_base);
0.1.1

10 years ago

0.1.0

10 years ago