index.js
function encode(hexString) {
	// Convert to array of bytes
	var bytes = Buffer.from(hexString, "hex");
	var encoded = base32.stringify(bytes);

	// strip padding & lowercase
	return encoded.replace(/(=+)$/, '').toLowerCase();
}
function encode(hexString) {
	// Convert to array of bytes
	var bytes = Buffer.from(hexString, "hex");
	var encoded = base32.stringify(bytes);

	// strip padding & lowercase
	return encoded.replace(/(=+)$/, '').toLowerCase();
}
function encode ( hexString ) { // Convert to array of bytes var bytes = Buffer . from ( hexString , "hex" ) ; var encoded = base32 . stringify ( bytes ) ; // strip padding & lowercase return encoded . replace ( / (=+)$ / , '' ) . toLowerCase ( ) ; }
Convert a string of hex characters to a base32 encoded string
@param {String} hexString The hex string to encode
Convert a string of hex characters to a base32 encoded string