sheeldotme-aba

1.8.0 • Public • Published

sheeldotme-aba

build status

Install

  npm install sheeldotme-aba

Usage

  var base62 = require('sheeldotme-aba');
  base62.toDecimal('1aA');
  base62.fromDecimal(100);

Handling Errors

If the value past to aba is not appropriate, it returns null.

  var result = base62.toDecimal('1aA');
  console.log(result); // 6086
  
  var result = base62.toDecimal('1aA!');
  console.log(result); // null

Test for a successful result by making sure the response is not null

  var result = base62.toDecimal('1aA');
  if(result !== null) {
    console.log(result); // 6086
  }

Contribute

You can find the repository at https://github.com/sheeldotme/sheeldotme-aba. Find a bug? Create an issue at https://github.com/sheeldotme/sheeldotme-aba/issues

If you have any questions/feedback feel free to reach out to me on twitter @sheeldotme

Package Sidebar

Install

npm i sheeldotme-aba

Weekly Downloads

1

Version

1.8.0

License

ISC

Last publish

Collaborators

  • sheeldotme