string-base

0.0.2 • Public • Published

Decimal to a String base and vice-versa

Installing

npm install aws-sdk

Uses

You can use the method as described below:

// import module
var stringBase = require('string-base');

// Set base string and its length will be treated as base length
stringBase.setBase('abcdef253');

// Now you can convert any Integer to this base by
console.log(stringBase.decimalToBase(258)); //bjg
// Or vice-versa
console.log(stringBase.baseToDecimal('bjg')); //258

Readme

Keywords

none

Package Sidebar

Install

npm i string-base

Weekly Downloads

0

Version

0.0.2

License

MIT

Last publish

Collaborators

  • rahu