{
  "name": "connect-domain",
  "version": "0.5.0",
  "description": "Asynchronous error handler for Connect",
  "keywords": [
    "domain",
    "error",
    "connect"
  ],
  "author": {
    "name": "Vadim M. Baryshev",
    "email": "vadimbaryshev@gmail.com"
  },
  "main": "index",
  "repository": {
    "type": "git",
    "url": "git://github.com/baryshev/connect-domain.git"
  },
  "devDependencies": {
    "should": "*",
    "connect": "*",
    "jscover": "*",
    "supertest": "*",
    "mocha": "*"
  },
  "engines": {
    "node": ">= 0.8.0"
  },
  "readme": "# About \n\nAsynchronous error handler for Connect\n\n# Installation\n\n\tnpm install connect-domain\n\n# Usage\n\n```js\nvar\n\tconnect = require('connect'),\n\tconnectDomain = require('connect-domain');\n\nvar app = connect()\n\t.use(connectDomain())\n\t.use(function(req, res){\n\t\tif (Math.random() > 0.5) {\n\t\t\tthrow new Error('Simple error');\n\t\t}\n\t\tsetTimeout(function() {\n\t\t\tif (Math.random() > 0.5) {\n\t\t\t\tthrow new Error('Asynchronous error from timeout');\n\t\t\t} else {\n\t\t\t\tres.end('Hello from Connect!');\n\t\t\t}\n\t\t}, 1000);\n\t})\n\t.use(function(err, req, res, next) {\n\t\tres.end(err.message);\n\t});\n\napp.listen(3000);\n```",
  "readmeFilename": "README.md",
  "_id": "connect-domain@0.5.0",
  "dist": {
    "shasum": "8b6e46cc7b33e57bcf9e3fe789a3185c3eaa3868",
    "tarball": "http://registry.npmjs.org/connect-domain/-/connect-domain-0.5.0.tgz"
  },
  "_from": "connect-domain@>=0.5.0 <0.6.0",
  "_npmVersion": "1.2.11",
  "_npmUser": {
    "name": "baryshev",
    "email": "vadimbaryshev@gmail.com"
  },
  "maintainers": [
    {
      "name": "baryshev",
      "email": "vadimbaryshev@gmail.com"
    }
  ],
  "directories": {},
  "_shasum": "8b6e46cc7b33e57bcf9e3fe789a3185c3eaa3868",
  "_resolved": "http://registry.npmjs.org/connect-domain/-/connect-domain-0.5.0.tgz"
}
