Javascript Base62 encode/decoder

npm install base62
232 downloads in the last day
4 489 downloads in the last week
18 386 downloads in the last month


build status

A javascript Base62 encode/decoder for node.js


npm install base62


Base62 = require('base62')
Base62.encode(999)  // 'g7'
Base62.decode('g7') // 999


Source hosted at GitHub. Report Issues/Feature requests on GitHub Issues.

Note on Patches/Pull Requests

  • Fork the project.
  • Make your feature addition or bug fix.
  • Add tests for it. This is important so I don't break it in a future version unintentionally.
  • Send me a pull request. Bonus points for topic branches.

Copyright (c) 2012 Andrew Nesbitt. See LICENSE for details.

npm loves you