Skip to content

irrelevation/baseconverter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 

Repository files navigation

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);

About

Convert a string from one base of characters to another.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published