index.js
function getFormatFunction (name) {
  // lookup format
  var fmt = morgan[name] || name || morgan.default

  // return compiled format
  return typeof fmt !== 'function'
    ? compile(fmt)
    : fmt
}
function getFormatFunction (name) {
  // lookup format
  var fmt = morgan[name] || name || morgan.default

  // return compiled format
  return typeof fmt !== 'function'
    ? compile(fmt)
    : fmt
}
function getFormatFunction ( name ) { // lookup format var fmt = morgan [ name ] || name || morgan . default // return compiled format return typeof fmt !== 'function' ? compile ( fmt ) : fmt }
Lookup and compile a named format function.

@param {string} name
@return {function}
@public
Lookup and compile a named format function .