{
  "name": "morgan",
  "description": "http request logger middleware for node.js",
  "version": "1.1.1",
  "author": {
    "name": "Jonathan Ong",
    "email": "me@jongleberry.com",
    "url": "http://jongleberry.com"
  },
  "contributors": [
    {
      "name": "Douglas Christopher Wilson",
      "email": "doug@somethingdoug.com"
    }
  ],
  "license": "MIT",
  "repository": {
    "type": "git",
    "url": "https://github.com/expressjs/morgan.git"
  },
  "bugs": {
    "url": "https://github.com/expressjs/morgan/issues"
  },
  "dependencies": {
    "bytes": "1.0.0"
  },
  "devDependencies": {
    "istanbul": "0.2.10",
    "mocha": "~1.19.0",
    "should": "~3.3.1",
    "supertest": "~0.12.0"
  },
  "engines": {
    "node": ">= 0.8.0"
  },
  "scripts": {
    "test": "mocha --require should --reporter dot",
    "test-cov": "istanbul cover node_modules/mocha/bin/_mocha -- --require should --reporter dot",
    "test-travis": "istanbul cover node_modules/mocha/bin/_mocha --report lcovonly -- --require should --reporter spec"
  },
  "readme": "# morgan [![NPM version](https://badge.fury.io/js/morgan.svg)](http://badge.fury.io/js/morgan) [![Build Status](https://travis-ci.org/expressjs/morgan.svg)](https://travis-ci.org/expressjs/morgan) [![Coverage Status](https://img.shields.io/coveralls/expressjs/morgan.svg)](https://coveralls.io/r/expressjs/morgan)\n\nLogging middleware for node.js http apps.\n\n> Named after [Dexter](http://en.wikipedia.org/wiki/Dexter_Morgan), a show you should not watch until completion.\n\n## API\n\n```js\nvar express = require('express')\nvar morgan  = require('morgan')\n\nvar app = express()\napp.use(morgan())\n```\n\n### morgan(options)\n\nMorgan may be passed options to configure the logging output. The options may be passed as a predefined format, formatting string, function, or object.\n\n```js\nmorgan() // default\nmorgan('short')\nmorgan('tiny')\nmorgan({ format: 'dev', immediate: true })\nmorgan(':method :url - :referrer')\nmorgan(':req[content-type] -> :res[content-type]')\nmorgan(function(tokens, req, res){ return 'some format string' })\nmorgan({ format: 'dev', skip: function(req, res){ return res.statusCode === 304; }})\n```\n\n#### Predefined Formats\n\n- `default` - Standard output.\n- `short` - Shorter than default, also including response time.\n- `tiny` - The minimal.\n- `dev` - Concise output colored by response status for development use.\n\n#### Options\n\nMorgan accepts these properties in the options object.\n\n- `format` - Format string or Setting, see below for format tokens.\n- `stream` - Output stream, defaults to `stdout`.\n- `buffer` - Buffer duration, defaults to `1000 ms` when `true`.\n- `immediate` - Write log line on request instead of response (for response times).\n- `skip` - Function to determine if logging is skipped, called as `skip(req, res)`, defaults to `false`.\n\nAll default formats are defined this way, however the api is also public:\n```js\nmorgan.format('name', 'string or function')\n```\n\n#### Tokens\n\n- `:req[header]` ex: `:req[Accept]`\n- `:res[header]` ex: `:res[Content-Length]`\n- `:http-version`\n- `:response-time`\n- `:remote-addr`\n- `:date`\n- `:method`\n- `:url`\n- `:referrer`\n- `:user-agent`\n- `:status`\n\nTo define a token, simply invoke `morgan.token()` with the name and a callback function. The value returned is then available as \":type\" in this case:\n```js\nmorgan.token('type', function(req, res){ return req.headers['content-type']; })\n```\n\n\n## License\n\nThe MIT License (MIT)\n\nCopyright (c) 2014 Jonathan Ong me@jongleberry.com\n\nPermission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the \"Software\"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.\n",
  "readmeFilename": "README.md",
  "homepage": "https://github.com/expressjs/morgan",
  "_id": "morgan@1.1.1",
  "_shasum": "cde45d2e807ebcc439745846ea80392e69098146",
  "_from": "morgan@1.1.1",
  "_resolved": "https://registry.npmjs.org/morgan/-/morgan-1.1.1.tgz"
}
