lib/message-utils.js
function (value, encoding) {
    encoding = (typeof encoding === 'undefined') ? 'utf8' : encoding
    if (Buffer.isBuffer(value)) {
      value = value.toString(encoding)
    }
    return value
  }
function (value, encoding) {
    encoding = (typeof encoding === 'undefined') ? 'utf8' : encoding
    if (Buffer.isBuffer(value)) {
      value = value.toString(encoding)
    }
    return value
  }
function ( value , encoding ) { encoding = ( typeof encoding === 'undefined' ) ? 'utf8' : encoding if ( Buffer . isBuffer ( value ) ) { value = value . toString ( encoding ) } return value }
Decodes the specified value and returns it.
@param {Buffer|String} value - The value.
@param {String} encoding - The encoding.
@returns {String} The decoded value
Decodes the specified value and returns it .