index.js
function listify(fp, methods, ctx) {
  var len = methods.length, i = 0;
  var res = [''];
  while (len--) {
    var method = methods[i++];
    var line = ctx[method];
    var item = line ? linkify('.' + method, fp, '#L' + line) : method;
    item = '  - ' + item;
    res.push(item);
  }
  return res.sort().join('\n');
}
function listify(fp, methods, ctx) {
  var len = methods.length, i = 0;
  var res = [''];
  while (len--) {
    var method = methods[i++];
    var line = ctx[method];
    var item = line ? linkify('.' + method, fp, '#L' + line) : method;
    item = '  - ' + item;
    res.push(item);
  }
  return res.sort().join('\n');
}
function listify ( fp , methods , ctx ) { var len = methods . length , i = 0 ; var res = [ '' ] ; while ( len -- ) { var method = methods [ i ++ ] ; var line = ctx [ method ] ; var item = line ? linkify ( '.' + method , fp , '#L' + line ) : method ; item = '  - ' + item ; res . push ( item ) ; } return res . sort ( ) . join ( '\n' ) ; }
Create a formatted list for a file and it methods.

@param  {String} `fp` File path
@param  {Array} `items` Array of items to format.
@param  {Object} `ctx` Code context, mainly for getting line numbers to create links.
@return {Array}
Create a formatted list for a file and it methods .