GT2/GT2-iOS/node_modules/errorhandler/package.json

126 lines
7.0 KiB
JSON

{
"_args": [
[
{
"raw": "errorhandler@~1.4.2",
"scope": null,
"escapedName": "errorhandler",
"name": "errorhandler",
"rawSpec": "~1.4.2",
"spec": ">=1.4.2 <1.5.0",
"type": "range"
},
"/Volumes/2009-SSD/GT2/GT2-iOS/node_modules/connect"
]
],
"_from": "errorhandler@>=1.4.2 <1.5.0",
"_id": "errorhandler@1.4.3",
"_inCache": true,
"_location": "/errorhandler",
"_npmUser": {
"name": "dougwilson",
"email": "doug@somethingdoug.com"
},
"_npmVersion": "1.4.28",
"_phantomChildren": {},
"_requested": {
"raw": "errorhandler@~1.4.2",
"scope": null,
"escapedName": "errorhandler",
"name": "errorhandler",
"rawSpec": "~1.4.2",
"spec": ">=1.4.2 <1.5.0",
"type": "range"
},
"_requiredBy": [
"/connect"
],
"_resolved": "https://registry.npmjs.org/errorhandler/-/errorhandler-1.4.3.tgz",
"_shasum": "b7b70ed8f359e9db88092f2d20c0f831420ad83f",
"_shrinkwrap": null,
"_spec": "errorhandler@~1.4.2",
"_where": "/Volumes/2009-SSD/GT2/GT2-iOS/node_modules/connect",
"bugs": {
"url": "https://github.com/expressjs/errorhandler/issues"
},
"contributors": [
{
"name": "Douglas Christopher Wilson",
"email": "doug@somethingdoug.com"
},
{
"name": "Jonathan Ong",
"email": "me@jongleberry.com",
"url": "http://jongleberry.com"
}
],
"dependencies": {
"accepts": "~1.3.0",
"escape-html": "~1.0.3"
},
"description": "Development-only error handler middleware",
"devDependencies": {
"after": "0.8.1",
"istanbul": "0.4.2",
"mocha": "2.3.4",
"supertest": "1.1.0"
},
"directories": {},
"dist": {
"shasum": "b7b70ed8f359e9db88092f2d20c0f831420ad83f",
"tarball": "https://registry.npmjs.org/errorhandler/-/errorhandler-1.4.3.tgz"
},
"engines": {
"node": ">= 0.8"
},
"files": [
"public/",
"LICENSE",
"HISTORY.md",
"index.js"
],
"gitHead": "c41e9aaf9a518bcf6132c36f81fe67593eac99e8",
"homepage": "https://github.com/expressjs/errorhandler#readme",
"license": "MIT",
"maintainers": [
{
"name": "jongleberry",
"email": "jonathanrichardong@gmail.com"
},
{
"name": "dougwilson",
"email": "doug@somethingdoug.com"
},
{
"name": "tjholowaychuk",
"email": "tj@vision-media.ca"
},
{
"name": "mscdex",
"email": "mscdex@mscdex.net"
},
{
"name": "fishrock123",
"email": "fishrock123@rocketmail.com"
},
{
"name": "defunctzombie",
"email": "shtylman@gmail.com"
}
],
"name": "errorhandler",
"optionalDependencies": {},
"readme": "# errorhandler\n\n[![NPM Version][npm-image]][npm-url]\n[![NPM Downloads][downloads-image]][downloads-url]\n[![Build Status][travis-image]][travis-url]\n[![Test Coverage][coveralls-image]][coveralls-url]\n[![Gratipay][gratipay-image]][gratipay-url]\n\nDevelopment-only error handler middleware.\n\nThis middleware is only intended to be used in a development environment, as\nthe _full error stack traces and internal details of any object passed to this\nmodule_ will be sent back to the client when an error occurs.\n\nWhen an object is provided to Express as an error, this module will display\nas much about this object as possible, and will do so by using content negotiation\nfor the response between HTML, JSON, and plain text.\n\n * When the object is a standard `Error` object, the string provided by the\n `stack` property will be returned in HTML/text responses.\n * When the object is a non-`Error` object, the result of\n [util.inspect](https://nodejs.org/api/util.html#util_util_inspect_object_options)\n will be returned in HTML/text responses.\n * For JSON responses, the result will be an object with all enumerable properties\n from the object in the response.\n\n## Install\n\n```sh\n$ npm install errorhandler\n```\n\n## API\n\n```js\nvar errorhandler = require('errorhandler')\n```\n\n### errorhandler(options)\n\nCreate new middleware to handle errors and respond with content negotiation.\n\n#### Options\n\nError handler accepts these properties in the options object.\n\n##### log\n\nProvide a function to be called with the error and a string representation of\nthe error. Can be used to write the error to any desired location, or set to\n`false` to only send the error back in the response. Called as\n`log(err, str, req, res)` where `err` is the `Error` object, `str` is a string\nrepresentation of the error, `req` is the request object and `res` is the\nresponse object (note, this function is invoked _after_ the response has been\nwritten).\n\nThe default value for this option is `true` unless `process.env.NODE_ENV === 'test'`.\n\nPossible values:\n\n * `true`: Log errors using `console.error(str)`.\n * `false`: Only send the error back in the response.\n * A function: pass the error to a function for handling.\n\n## Examples\n\n### Simple example\n\nBasic example of adding this middleware as the error handler only in development\nwith `connect` (`express` also can be used in this example).\n\n```js\nvar connect = require('connect')\nvar errorhandler = require('errorhandler')\n\nvar app = connect()\n\nif (process.env.NODE_ENV === 'development') {\n // only use in development\n app.use(errorhandler())\n}\n```\n\n### Custom output location\n\nSometimes you may want to output the errors to a different location than STDERR\nduring development, like a system notification, for example.\n\n```js\nvar connect = require('connect')\nvar errorhandler = require('errorhandler')\nvar notifier = require('node-notifier')\n\nvar app = connect()\n\nif (process.env.NODE_ENV === 'development') {\n // only use in development\n app.use(errorhandler({log: errorNotification}))\n}\n\nfunction errorNotification(err, str, req) {\n var title = 'Error in ' + req.method + ' ' + req.url\n\n notifier.notify({\n title: title,\n message: str\n })\n}\n```\n\n## License\n\n[MIT](LICENSE)\n\n[npm-image]: https://img.shields.io/npm/v/errorhandler.svg\n[npm-url]: https://npmjs.org/package/errorhandler\n[travis-image]: https://img.shields.io/travis/expressjs/errorhandler/master.svg\n[travis-url]: https://travis-ci.org/expressjs/errorhandler\n[coveralls-image]: https://img.shields.io/coveralls/expressjs/errorhandler/master.svg\n[coveralls-url]: https://coveralls.io/r/expressjs/errorhandler?branch=master\n[downloads-image]: https://img.shields.io/npm/dm/errorhandler.svg\n[downloads-url]: https://npmjs.org/package/errorhandler\n[gratipay-image]: https://img.shields.io/gratipay/dougwilson.svg\n[gratipay-url]: https://www.gratipay.com/dougwilson/\n",
"readmeFilename": "README.md",
"repository": {
"type": "git",
"url": "git+https://github.com/expressjs/errorhandler.git"
},
"scripts": {
"test": "mocha --reporter spec --bail --check-leaks test/",
"test-cov": "istanbul cover node_modules/mocha/bin/_mocha -- --reporter dot --check-leaks test/",
"test-travis": "istanbul cover node_modules/mocha/bin/_mocha --report lcovonly -- --reporter spec --check-leaks test/"
},
"version": "1.4.3"
}