src/index.js
function toAscii(hex) {
  var str = ''; // eslint-disable-line
  var i = 0, l = hex.length; // eslint-disable-line

  if (hex.substring(0, 2) === '0x') {
    i = 2;
  }

  for (; i < l; i += 2) {
    const code = parseInt(hex.substr(i, 2), 16);
    str += String.fromCharCode(code);
  }

  return str;
}
function toAscii(hex) {
  var str = ''; // eslint-disable-line
  var i = 0, l = hex.length; // eslint-disable-line

  if (hex.substring(0, 2) === '0x') {
    i = 2;
  }

  for (; i < l; i += 2) {
    const code = parseInt(hex.substr(i, 2), 16);
    str += String.fromCharCode(code);
  }

  return str;
}
function toAscii ( hex ) { var str = '' ; // eslint-disable-line var i = 0 , l = hex . length ; // eslint-disable-line if ( hex . substring ( 0 , 2 ) === '0x' ) { i = 2 ; } for ( ; i < l ; i += 2 ) { const code = parseInt ( hex . substr ( i , 2 ) , 16 ) ; str += String . fromCharCode ( code ) ; } return str ; }
Should be called to get ascii from it's hex representation

@method toAscii
@param {String} string in hex
@returns {String} ascii string representation of hex value
Should be called to get ascii from it s hex representation