function inlineDiff(actual, expected) {
    var msg = errorDiff(actual, expected);

    // linenos
    var lines = msg.split('\n');
    if (lines.length > 4) {
      var width = String(lines.length).length;
      msg = lines
        .map(function (str, i) {
          return pad(++i, width) + ' |' + ' ' + str;
        })
        .join('\n');
    }

    // legend
    msg =
      '\n' +
      color('diff removed inline', 'actual') +
      ' ' +
      color('diff added inline', 'expected') +
      '\n\n' +
      msg +
      '\n';

    // indent
    msg = msg.replace(/^/gm, '      ');
    return msg;
  }
Returns inline diff between 2 strings with coloured ANSI output.

@private
@param {String} actual
@param {String} expected
@return {string} Diff