Nodejs Utililty Methods Hex to Binary Convert

List of utility methods to do Hex to Binary Convert

Description

The list of methods to do Hex to Binary Convert are organized into topic(s).

Method

hex2bin()
String.prototype.hex2bin = function () {
  var i = 0, l = this.length - 1, bytes = []
  for (i; i < l; i += 2)
    bytes.push(parseInt(this.substr(i, 2), 16))
  return String.fromCharCode.apply(String, bytes)   
hex2bin()
String.prototype.hex2bin = function ()
  var i = 0, l = this.length - 1, bytes = []
  for (i; i < l; i += 2)
    bytes.push(parseInt(this.substr(i, 2), 16))
  return String.fromCharCode.apply(String, bytes)