A while back I wrote a gist for base58 encoding / decoding in Python, then ported it to JavaScript. The other day I thought it would be good fun to convert the JavaScript version to a npm module so it can run on Node.js, and here’s the result: https://npmjs.org/package/encdec

It’s essentially the same as the original version. The only real difference is the unit tests are now in nodeunit instead of QUnit.

You can install node-encdec via npm:

npm install node-encdec
# or to install globally
  npm install -g node-encdec