lib/string.js
function convertBinaryToBase36(binary)
{
	var result = '';
	for (var i = 0; i < 25; i++)
	{
		var c;
		if (typeof binary == 'string')
		{
			c = binary.charCodeAt(i) % 36;
		}
		else
		{
			c = binary[i] % 36;
		}
		if (c < 10)
		{
			result += String.fromCharCode(48 + c);
		}
		else
		{
			result += String.fromCharCode(87 + c);
		}
	}
	return result;
}
function convertBinaryToBase36(binary)
{
	var result = '';
	for (var i = 0; i < 25; i++)
	{
		var c;
		if (typeof binary == 'string')
		{
			c = binary.charCodeAt(i) % 36;
		}
		else
		{
			c = binary[i] % 36;
		}
		if (c < 10)
		{
			result += String.fromCharCode(48 + c);
		}
		else
		{
			result += String.fromCharCode(87 + c);
		}
	}
	return result;
}
function convertBinaryToBase36 ( binary ) { var result = '' ; for ( var i = 0 ; i < 25 ; i ++ ) { var c ; if ( typeof binary == 'string' ) { c = binary . charCodeAt ( i ) % 36 ; } else { c = binary [ i ] % 36 ; } if ( c < 10 ) { result += String . fromCharCode ( 48 + c ) ; } else { result += String . fromCharCode ( 87 + c ) ; } } return result ; }
Convert binary to base 36.
Convert binary to base 36 .