lib/baseURL.js
function decode (str) {
  if (!isValid(str)) throw new Error('baseURL#decode: str not valid baseURL string');

  var bits = '';
  // Decode
  for (var i = 0; i < str.length; i++) {
    bits += indexOfBits(str[i]);
  }
  return bits;
}
function decode (str) {
  if (!isValid(str)) throw new Error('baseURL#decode: str not valid baseURL string');

  var bits = '';
  // Decode
  for (var i = 0; i < str.length; i++) {
    bits += indexOfBits(str[i]);
  }
  return bits;
}
function decode ( str ) { if ( ! isValid ( str ) ) throw new Error ( 'baseURL#decode: str not valid baseURL string' ) ; var bits = '' ; // Decode for ( var i = 0 ; i < str . length ; i ++ ) { bits += indexOfBits ( str [ i ] ) ; } return bits ; }
Decode a baseURL string to a mod 6 bitstring
@param  {string} str A valid baseURL string
@return {string}     A mod 6 bitstring
Decode a baseURL string to a mod 6 bitstring