Nodejs Hex to String Convert hexTOstr()

Here you can find the source of hexTOstr()

Method Source Code

String.prototype.hexTOstr = function() {
   var o = "", l = this.length;
   for (var x = 0; x < l; x += 2)
   {/*from w  w w.j  ava  2s  . c  om*/
      o += String.fromCharCode(parseInt(this.substr(x, 2), 16));
   }
   return o;
}