node package manager


A small JavaScript library for baseXX encoding and decoding. Defaults to base58, but can easily be used for base32, base64, etc.


encdec is a node module that helps you baseXX encode and decode.

It defaults to using base58 encoding, but can easily be adapted for base16, base32, base64 - or any other base - by passing the alphabet you want to use to the create() method.

var base58 = require('encdec').create() // defaults to base58

// base32 encoding
var base32 = require('encdec').create('ABCDEFGHIJKLMNOPQRSTUVWXYZ234567');

nodenunit is used for unit testing, and is included in this repo as a submodule to the node_modules folder. To download nodeunit after cloning this repository, enter the following at your command prompt:

git submodule init
git submodule update

To run the tests, you'll need to install nodeunit if you haven't done so already.