{"_id":"connect-timeout","_rev":"60173","name":"connect-timeout","description":"Request timeout middleware for Connect/Express","dist-tags":{"latest":"1.9.0"},"maintainers":[{"name":"aaron","email":"aaron.heckmann+github@gmail.com"},{"name":"fishrock123","email":"fishrock123@rocketmail.com"},{"name":"mscdex","email":"mscdex@mscdex.net"}],"time":{"modified":"2021-06-03T10:20:21.000Z","created":"2011-02-09T13:46:53.738Z","1.9.0":"2017-05-17T01:42:42.722Z","1.8.0":"2016-11-22T01:15:06.592Z","1.7.0":"2015-08-23T20:49:12.919Z","1.6.2":"2015-05-12T05:31:45.138Z","1.6.1":"2015-03-15T04:07:26.874Z","1.6.0":"2015-02-16T01:11:50.054Z","1.5.0":"2014-12-31T05:49:30.643Z","1.4.0":"2014-10-17T00:18:57.038Z","1.3.0":"2014-09-04T04:52:58.783Z","1.2.2":"2014-08-11T01:34:10.765Z","1.2.1":"2014-07-23T00:14:26.329Z","1.2.0":"2014-07-11T17:03:35.034Z","1.1.1":"2014-06-17T02:47:29.486Z","1.1.0":"2014-04-29T18:20:40.154Z","1.0.1":"2014-04-29T03:25:38.145Z","1.0.0":"2014-03-05T20:36:22.140Z","0.0.1":"2011-02-09T13:46:53.738Z"},"users":{"kparkov":true,"hckhanh":true,"wangnan0610":true,"sunkeyhub":true,"ferrari":true,"mobeicaoyuan":true,"scottfreecode":true,"dburdese":true,"noderat":true,"akashdeep-singh":true,"chirag8642":true,"rocket0191":true,"larrychen":true},"repository":{"type":"git","url":"git+https://github.com/expressjs/timeout.git"},"versions":{"1.9.0":{"name":"connect-timeout","description":"Request timeout middleware for Connect/Express","version":"1.9.0","contributors":[{"name":"Douglas Christopher Wilson","email":"doug@somethingdoug.com"},{"name":"Jonathan Ong","email":"me@jongleberry.com","url":"http://jongleberry.com"}],"license":"MIT","repository":{"type":"git","url":"git+https://github.com/expressjs/timeout.git"},"dependencies":{"http-errors":"~1.6.1","ms":"2.0.0","on-finished":"~2.3.0","on-headers":"~1.0.1"},"devDependencies":{"eslint":"3.19.0","eslint-config-standard":"10.2.1","eslint-plugin-import":"2.2.0","eslint-plugin-markdown":"1.0.0-beta.6","eslint-plugin-node":"4.2.2","eslint-plugin-promise":"3.5.0","eslint-plugin-standard":"3.0.1","istanbul":"0.4.5","mocha":"2.5.3","supertest":"1.1.0"},"files":["LICENSE","HISTORY.md","index.js"],"engines":{"node":">= 0.8"},"scripts":{"lint":"eslint --plugin markdown --ext js,md .","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 dot --check-leaks test/"},"gitHead":"f2f520f335f2f2ae255d4778e908e8d38e3a4e68","bugs":{"url":"https://github.com/expressjs/timeout/issues"},"homepage":"https://github.com/expressjs/timeout#readme","_id":"connect-timeout@1.9.0","_shasum":"bc27326b122103714bebfa0d958bab33f6522e3a","_from":".","_npmVersion":"3.10.10","_nodeVersion":"6.10.3","_npmUser":{"name":"dougwilson","email":"doug@somethingdoug.com"},"dist":{"shasum":"bc27326b122103714bebfa0d958bab33f6522e3a","size":4653,"noattachment":false,"key":"/connect-timeout/-/connect-timeout-1.9.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/connect-timeout/download/connect-timeout-1.9.0.tgz"},"maintainers":[{"name":"aaron","email":"aaron.heckmann+github@gmail.com"},{"name":"fishrock123","email":"fishrock123@rocketmail.com"},{"name":"mscdex","email":"mscdex@mscdex.net"}],"_npmOperationalInternal":{"host":"packages-18-east.internal.npmjs.com","tmp":"tmp/connect-timeout-1.9.0.tgz_1494985361258_0.5828525682445616"},"directories":{},"publish_time":1494985362722,"_hasShrinkwrap":false,"_cnpm_publish_time":1494985362722},"1.8.0":{"name":"connect-timeout","description":"Request timeout middleware for Connect/Express","version":"1.8.0","contributors":[{"name":"Douglas Christopher Wilson","email":"doug@somethingdoug.com"},{"name":"Jonathan Ong","email":"me@jongleberry.com","url":"http://jongleberry.com"}],"license":"MIT","repository":{"type":"git","url":"https://github.com/expressjs/timeout"},"dependencies":{"http-errors":"~1.5.1","ms":"0.7.2","on-finished":"~2.3.0","on-headers":"~1.0.1"},"devDependencies":{"eslint":"3.10.2","eslint-config-standard":"6.2.1","eslint-plugin-markdown":"1.0.0-beta.3","eslint-plugin-promise":"3.4.0","eslint-plugin-standard":"2.0.1","istanbul":"0.4.5","mocha":"2.5.3","supertest":"1.1.0"},"files":["LICENSE","HISTORY.md","index.js"],"engines":{"node":">= 0.8"},"scripts":{"lint":"eslint --plugin markdown --ext js,md .","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 dot --check-leaks test/"},"gitHead":"31fde61ec2f9b454481e2eef0f34925dc805efb5","bugs":{"url":"https://github.com/expressjs/timeout/issues"},"homepage":"https://github.com/expressjs/timeout","_id":"connect-timeout@1.8.0","_shasum":"4b74c58ad0303e069e4f417af388a058cfa3b839","_from":".","_npmVersion":"1.4.28","_npmUser":{"name":"dougwilson","email":"doug@somethingdoug.com"},"maintainers":[{"name":"aaron","email":"aaron.heckmann+github@gmail.com"},{"name":"fishrock123","email":"fishrock123@rocketmail.com"},{"name":"mscdex","email":"mscdex@mscdex.net"}],"dist":{"shasum":"4b74c58ad0303e069e4f417af388a058cfa3b839","size":4493,"noattachment":false,"key":"/connect-timeout/-/connect-timeout-1.8.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/connect-timeout/download/connect-timeout-1.8.0.tgz"},"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/connect-timeout-1.8.0.tgz_1479777304651_0.060944604221731424"},"directories":{},"publish_time":1479777306592,"_cnpm_publish_time":1479777306592,"_hasShrinkwrap":false},"1.7.0":{"name":"connect-timeout","description":"Request timeout middleware for Connect/Express","version":"1.7.0","contributors":[{"name":"Douglas Christopher Wilson","email":"doug@somethingdoug.com"},{"name":"Jonathan Ong","email":"me@jongleberry.com","url":"http://jongleberry.com"}],"license":"MIT","repository":{"type":"git","url":"https://github.com/expressjs/timeout"},"dependencies":{"debug":"~2.2.0","http-errors":"~1.3.1","ms":"0.7.1","on-finished":"~2.3.0","on-headers":"~1.0.0"},"devDependencies":{"istanbul":"0.3.17","mocha":"2.2.5","supertest":"1.0.1"},"files":["LICENSE","HISTORY.md","index.js"],"engines":{"node":">= 0.8"},"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 dot --check-leaks test/"},"gitHead":"39b1c6acac4aaf8fe11098e3d84d5ac8a00961a0","bugs":{"url":"https://github.com/expressjs/timeout/issues"},"homepage":"https://github.com/expressjs/timeout","_id":"connect-timeout@1.7.0","_shasum":"319daaabb6568f8281f12b030c0764637498d05a","_from":".","_npmVersion":"1.4.28","_npmUser":{"name":"dougwilson","email":"doug@somethingdoug.com"},"maintainers":[{"name":"aaron","email":"aaron.heckmann+github@gmail.com"},{"name":"fishrock123","email":"fishrock123@rocketmail.com"},{"name":"mscdex","email":"mscdex@mscdex.net"}],"dist":{"shasum":"319daaabb6568f8281f12b030c0764637498d05a","size":4162,"noattachment":false,"key":"/connect-timeout/-/connect-timeout-1.7.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/connect-timeout/download/connect-timeout-1.7.0.tgz"},"directories":{},"publish_time":1440362952919,"_cnpm_publish_time":1440362952919,"_hasShrinkwrap":false},"1.6.2":{"name":"connect-timeout","description":"timeout middleware","version":"1.6.2","contributors":[{"name":"Douglas Christopher Wilson","email":"doug@somethingdoug.com"},{"name":"Jonathan Ong","email":"me@jongleberry.com","url":"http://jongleberry.com"}],"license":"MIT","repository":{"type":"git","url":"https://github.com/expressjs/timeout"},"dependencies":{"debug":"~2.2.0","http-errors":"~1.3.1","ms":"0.7.1","on-headers":"~1.0.0"},"devDependencies":{"istanbul":"0.3.9","mocha":"~2.2.4","supertest":"~0.15.0"},"files":["LICENSE","HISTORY.md","index.js"],"engines":{"node":">= 0.8"},"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 dot --check-leaks test/"},"gitHead":"f0042a0555ae52f4407be39a7635715234443417","bugs":{"url":"https://github.com/expressjs/timeout/issues"},"homepage":"https://github.com/expressjs/timeout","_id":"connect-timeout@1.6.2","_shasum":"de9a5ec61e33a12b6edaab7b5f062e98c599b88e","_from":".","_npmVersion":"1.4.28","_npmUser":{"name":"dougwilson","email":"doug@somethingdoug.com"},"maintainers":[{"name":"aaron","email":"aaron.heckmann+github@gmail.com"},{"name":"fishrock123","email":"fishrock123@rocketmail.com"},{"name":"mscdex","email":"mscdex@mscdex.net"}],"dist":{"shasum":"de9a5ec61e33a12b6edaab7b5f062e98c599b88e","size":3780,"noattachment":false,"key":"/connect-timeout/-/connect-timeout-1.6.2.tgz","tarball":"http://registry.cnpm.dingdandao.com/connect-timeout/download/connect-timeout-1.6.2.tgz"},"directories":{},"publish_time":1431408705138,"_cnpm_publish_time":1431408705138,"_hasShrinkwrap":false},"1.6.1":{"name":"connect-timeout","description":"timeout middleware","version":"1.6.1","contributors":[{"name":"Douglas Christopher Wilson","email":"doug@somethingdoug.com"},{"name":"Jonathan Ong","email":"me@jongleberry.com","url":"http://jongleberry.com"}],"license":"MIT","repository":{"type":"git","url":"https://github.com/expressjs/timeout"},"dependencies":{"debug":"~2.1.3","http-errors":"~1.3.1","ms":"0.7.0","on-headers":"~1.0.0"},"devDependencies":{"istanbul":"0.3.7","mocha":"~2.2.1","supertest":"~0.15.0"},"files":["LICENSE","HISTORY.md","index.js"],"engines":{"node":">= 0.8"},"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 dot --check-leaks test/"},"gitHead":"f05edff495cf77ba7ab1c9344db17640878faa43","bugs":{"url":"https://github.com/expressjs/timeout/issues"},"homepage":"https://github.com/expressjs/timeout","_id":"connect-timeout@1.6.1","_shasum":"1de3a2b853734820a232080b95742494ba4cd067","_from":".","_npmVersion":"1.4.28","_npmUser":{"name":"dougwilson","email":"doug@somethingdoug.com"},"maintainers":[{"name":"aaron","email":"aaron.heckmann+github@gmail.com"},{"name":"fishrock123","email":"fishrock123@rocketmail.com"},{"name":"mscdex","email":"mscdex@mscdex.net"}],"dist":{"shasum":"1de3a2b853734820a232080b95742494ba4cd067","size":3705,"noattachment":false,"key":"/connect-timeout/-/connect-timeout-1.6.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/connect-timeout/download/connect-timeout-1.6.1.tgz"},"directories":{},"publish_time":1426392446874,"_cnpm_publish_time":1426392446874,"_hasShrinkwrap":false},"1.6.0":{"name":"connect-timeout","description":"timeout middleware","version":"1.6.0","contributors":[{"name":"Douglas Christopher Wilson","email":"doug@somethingdoug.com"},{"name":"Jonathan Ong","email":"me@jongleberry.com","url":"http://jongleberry.com"}],"license":"MIT","repository":{"type":"git","url":"https://github.com/expressjs/timeout"},"dependencies":{"debug":"~2.1.1","http-errors":"~1.3.1","ms":"0.7.0","on-headers":"~1.0.0"},"devDependencies":{"istanbul":"0.3.5","mocha":"~2.1.0","supertest":"~0.15.0"},"files":["LICENSE","HISTORY.md","index.js"],"engines":{"node":">= 0.8"},"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 dot --check-leaks test/"},"gitHead":"e85ad7b087aad648c48bc351a456dd8a10647d15","bugs":{"url":"https://github.com/expressjs/timeout/issues"},"homepage":"https://github.com/expressjs/timeout","_id":"connect-timeout@1.6.0","_shasum":"cd38b4c106d25f4472556f3be98ac4d1c4a8ef3e","_from":".","_npmVersion":"1.4.28","_npmUser":{"name":"dougwilson","email":"doug@somethingdoug.com"},"maintainers":[{"name":"aaron","email":"aaron.heckmann+github@gmail.com"},{"name":"fishrock123","email":"fishrock123@rocketmail.com"},{"name":"mscdex","email":"mscdex@mscdex.net"}],"dist":{"shasum":"cd38b4c106d25f4472556f3be98ac4d1c4a8ef3e","size":3656,"noattachment":false,"key":"/connect-timeout/-/connect-timeout-1.6.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/connect-timeout/download/connect-timeout-1.6.0.tgz"},"directories":{},"publish_time":1424049110054,"_cnpm_publish_time":1424049110054,"_hasShrinkwrap":false},"1.5.0":{"name":"connect-timeout","description":"timeout middleware","version":"1.5.0","contributors":[{"name":"Douglas Christopher Wilson","email":"doug@somethingdoug.com"},{"name":"Jonathan Ong","email":"me@jongleberry.com","url":"http://jongleberry.com"}],"license":"MIT","repository":{"type":"git","url":"https://github.com/expressjs/timeout"},"dependencies":{"debug":"~2.1.1","http-errors":"~1.2.8","ms":"0.7.0","on-headers":"~1.0.0"},"devDependencies":{"istanbul":"0.3.5","mocha":"~2.1.0","supertest":"~0.15.0"},"files":["LICENSE","HISTORY.md","index.js"],"engines":{"node":">= 0.8"},"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 dot --check-leaks test/"},"gitHead":"2a3325a154d23f8f87b1748dd6c82218b84e8c90","bugs":{"url":"https://github.com/expressjs/timeout/issues"},"homepage":"https://github.com/expressjs/timeout","_id":"connect-timeout@1.5.0","_shasum":"f9a18b06d5074d06d6f7db0cdf0ebd4bd6467621","_from":".","_npmVersion":"1.4.28","_npmUser":{"name":"dougwilson","email":"doug@somethingdoug.com"},"maintainers":[{"name":"aaron","email":"aaron.heckmann+github@gmail.com"},{"name":"fishrock123","email":"fishrock123@rocketmail.com"},{"name":"mscdex","email":"mscdex@mscdex.net"}],"dist":{"shasum":"f9a18b06d5074d06d6f7db0cdf0ebd4bd6467621","size":3493,"noattachment":false,"key":"/connect-timeout/-/connect-timeout-1.5.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/connect-timeout/download/connect-timeout-1.5.0.tgz"},"directories":{},"publish_time":1420004970643,"_cnpm_publish_time":1420004970643,"_hasShrinkwrap":false},"1.4.0":{"name":"connect-timeout","description":"timeout middleware","version":"1.4.0","contributors":[{"name":"Douglas Christopher Wilson","email":"doug@somethingdoug.com"},{"name":"Jonathan Ong","email":"me@jongleberry.com","url":"http://jongleberry.com"}],"license":"MIT","repository":{"type":"git","url":"https://github.com/expressjs/timeout"},"dependencies":{"debug":"~2.1.0","http-errors":"~1.2.7","ms":"0.6.2","on-headers":"~1.0.0"},"devDependencies":{"istanbul":"0.3.2","mocha":"~1.21.4","should":"~4.0.4","supertest":"~0.14.0"},"files":["LICENSE","HISTORY.md","index.js"],"engines":{"node":">= 0.8"},"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 dot --check-leaks test/"},"gitHead":"2d0c1159ddb64ce0256c13ac42a0aa066c681986","bugs":{"url":"https://github.com/expressjs/timeout/issues"},"homepage":"https://github.com/expressjs/timeout","_id":"connect-timeout@1.4.0","_shasum":"b8003ea155abd18bbdd8a19c91e5284ddc2e465e","_from":".","_npmVersion":"1.4.21","_npmUser":{"name":"dougwilson","email":"doug@somethingdoug.com"},"maintainers":[{"name":"aaron","email":"aaron.heckmann+github@gmail.com"},{"name":"fishrock123","email":"fishrock123@rocketmail.com"},{"name":"mscdex","email":"mscdex@mscdex.net"}],"dist":{"shasum":"b8003ea155abd18bbdd8a19c91e5284ddc2e465e","size":3422,"noattachment":false,"key":"/connect-timeout/-/connect-timeout-1.4.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/connect-timeout/download/connect-timeout-1.4.0.tgz"},"directories":{},"publish_time":1413505137038,"_cnpm_publish_time":1413505137038,"_hasShrinkwrap":false},"1.3.0":{"name":"connect-timeout","description":"timeout middleware","version":"1.3.0","contributors":[{"name":"Douglas Christopher Wilson","email":"doug@somethingdoug.com"},{"name":"Jonathan Ong","email":"me@jongleberry.com","url":"http://jongleberry.com"}],"license":"MIT","repository":{"type":"git","url":"https://github.com/expressjs/timeout"},"dependencies":{"debug":"~2.0.0","ms":"0.6.2","on-headers":"~1.0.0"},"devDependencies":{"istanbul":"0.3.0","mocha":"~1.21.4","should":"~4.0.4","supertest":"~0.13.0"},"files":["LICENSE","HISTORY.md","index.js"],"engines":{"node":">= 0.8"},"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 dot --check-leaks test/"},"gitHead":"1de30afe760066e1528cafcbc5d9a586e9d03562","bugs":{"url":"https://github.com/expressjs/timeout/issues"},"homepage":"https://github.com/expressjs/timeout","_id":"connect-timeout@1.3.0","_shasum":"d9d1d2df2900d490ed54190809f37e6b4508a1ec","_from":".","_npmVersion":"1.4.21","_npmUser":{"name":"dougwilson","email":"doug@somethingdoug.com"},"maintainers":[{"name":"aaron","email":"aaron.heckmann+github@gmail.com"},{"name":"fishrock123","email":"fishrock123@rocketmail.com"},{"name":"mscdex","email":"mscdex@mscdex.net"}],"dist":{"shasum":"d9d1d2df2900d490ed54190809f37e6b4508a1ec","size":3386,"noattachment":false,"key":"/connect-timeout/-/connect-timeout-1.3.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/connect-timeout/download/connect-timeout-1.3.0.tgz"},"directories":{},"publish_time":1409806378783,"_cnpm_publish_time":1409806378783,"_hasShrinkwrap":false},"1.2.2":{"name":"connect-timeout","description":"timeout middleware","version":"1.2.2","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/timeout"},"dependencies":{"debug":"1.0.4","ms":"0.6.2","on-headers":"~1.0.0"},"devDependencies":{"istanbul":"0.3.0","mocha":"~1.21.4","should":"~4.0.4","supertest":"~0.13.0"},"engines":{"node":">= 0.8"},"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 dot --check-leaks test/"},"gitHead":"21e51d1a58730ac93018a500c2513e9d96c41253","bugs":{"url":"https://github.com/expressjs/timeout/issues"},"homepage":"https://github.com/expressjs/timeout","_id":"connect-timeout@1.2.2","_shasum":"5953602bb66abfd5fa21ae911a7221c5e825a1c0","_from":".","_npmVersion":"1.4.21","_npmUser":{"name":"dougwilson","email":"doug@somethingdoug.com"},"maintainers":[{"name":"aaron","email":"aaron.heckmann+github@gmail.com"},{"name":"fishrock123","email":"fishrock123@rocketmail.com"},{"name":"mscdex","email":"mscdex@mscdex.net"}],"dist":{"shasum":"5953602bb66abfd5fa21ae911a7221c5e825a1c0","size":3253,"noattachment":false,"key":"/connect-timeout/-/connect-timeout-1.2.2.tgz","tarball":"http://registry.cnpm.dingdandao.com/connect-timeout/download/connect-timeout-1.2.2.tgz"},"directories":{},"publish_time":1407720850765,"_cnpm_publish_time":1407720850765,"_hasShrinkwrap":false},"1.2.1":{"name":"connect-timeout","description":"timeout middleware","version":"1.2.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":"git://github.com/expressjs/timeout"},"dependencies":{"debug":"1.0.4","ms":"0.6.2","on-headers":"0.0.0"},"devDependencies":{"istanbul":"0.3.0","mocha":"~1.20.1","should":"~4.0.4","supertest":"~0.13.0"},"engines":{"node":">= 0.8"},"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 dot --check-leaks test/"},"bugs":{"url":"https://github.com/expressjs/timeout/issues"},"homepage":"https://github.com/expressjs/timeout","_id":"connect-timeout@1.2.1","dist":{"shasum":"81bc8701578ef5185ca1305b847a964e9f7e0090","size":3194,"noattachment":false,"key":"/connect-timeout/-/connect-timeout-1.2.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/connect-timeout/download/connect-timeout-1.2.1.tgz"},"_from":".","_npmVersion":"1.4.3","_npmUser":{"name":"dougwilson","email":"doug@somethingdoug.com"},"maintainers":[{"name":"aaron","email":"aaron.heckmann+github@gmail.com"},{"name":"fishrock123","email":"fishrock123@rocketmail.com"},{"name":"mscdex","email":"mscdex@mscdex.net"}],"directories":{},"publish_time":1406074466329,"_cnpm_publish_time":1406074466329,"_hasShrinkwrap":false},"1.2.0":{"name":"connect-timeout","description":"timeout middleware","version":"1.2.0","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":"git://github.com/expressjs/timeout"},"dependencies":{"debug":"1.0.3","ms":"0.6.2","on-headers":"0.0.0"},"devDependencies":{"istanbul":"0.3.0","mocha":"~1.20.1","should":"~4.0.4","supertest":"~0.13.0"},"engines":{"node":">= 0.8"},"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 dot --check-leaks test/"},"bugs":{"url":"https://github.com/expressjs/timeout/issues"},"homepage":"https://github.com/expressjs/timeout","_id":"connect-timeout@1.2.0","dist":{"shasum":"4259cc2a5b6938b899b08ea26d2f0f0d4dd5cc78","size":3183,"noattachment":false,"key":"/connect-timeout/-/connect-timeout-1.2.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/connect-timeout/download/connect-timeout-1.2.0.tgz"},"_from":".","_npmVersion":"1.4.3","_npmUser":{"name":"dougwilson","email":"doug@somethingdoug.com"},"maintainers":[{"name":"aaron","email":"aaron.heckmann+github@gmail.com"},{"name":"fishrock123","email":"fishrock123@rocketmail.com"},{"name":"mscdex","email":"mscdex@mscdex.net"}],"directories":{},"publish_time":1405098215034,"_cnpm_publish_time":1405098215034,"_hasShrinkwrap":false},"1.1.1":{"name":"connect-timeout","description":"timeout middleware","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":"git://github.com/expressjs/timeout"},"dependencies":{"debug":"1.0.2","on-headers":"0.0.0"},"devDependencies":{"mocha":"~1.20.1","should":"~4.0.4","supertest":"~0.13.0"},"engines":{"node":">= 0.8"},"scripts":{"test":"mocha --reporter spec --require should"},"bugs":{"url":"https://github.com/expressjs/timeout/issues"},"homepage":"https://github.com/expressjs/timeout","_id":"connect-timeout@1.1.1","dist":{"shasum":"6c7e31c98f0ac68eb6d1305f67f21f5a6e90fd04","size":2936,"noattachment":false,"key":"/connect-timeout/-/connect-timeout-1.1.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/connect-timeout/download/connect-timeout-1.1.1.tgz"},"_from":".","_npmVersion":"1.4.3","_npmUser":{"name":"dougwilson","email":"doug@somethingdoug.com"},"maintainers":[{"name":"aaron","email":"aaron.heckmann+github@gmail.com"},{"name":"fishrock123","email":"fishrock123@rocketmail.com"},{"name":"mscdex","email":"mscdex@mscdex.net"}],"directories":{},"publish_time":1402973249486,"_cnpm_publish_time":1402973249486,"_hasShrinkwrap":false},"1.1.0":{"name":"connect-timeout","description":"timeout middleware","version":"1.1.0","author":{"name":"Jonathan Ong","email":"me@jongleberry.com","url":"http://jongleberry.com"},"license":"MIT","repository":{"type":"git","url":"https://github.com/expressjs/timeout.git"},"bugs":{"url":"https://github.com/expressjs/timeout/issues"},"dependencies":{"debug":"0.8.1"},"devDependencies":{"mocha":">= 1.18.0 < 2.0","should":">= 3.3.0 < 4.0","supertest":"*","connect":"*"},"engines":{"node":">= 0.8"},"scripts":{"test":"mocha --reporter spec --require should"},"homepage":"https://github.com/expressjs/timeout","_id":"connect-timeout@1.1.0","dist":{"shasum":"fc80615fc7a5b3863bd0319af2491d2d7fdc5f05","size":2724,"noattachment":false,"key":"/connect-timeout/-/connect-timeout-1.1.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/connect-timeout/download/connect-timeout-1.1.0.tgz"},"_from":".","_npmVersion":"1.4.3","_npmUser":{"name":"dougwilson","email":"doug@somethingdoug.com"},"maintainers":[{"name":"aaron","email":"aaron.heckmann+github@gmail.com"},{"name":"fishrock123","email":"fishrock123@rocketmail.com"},{"name":"mscdex","email":"mscdex@mscdex.net"}],"directories":{},"publish_time":1398795640154,"_cnpm_publish_time":1398795640154,"_hasShrinkwrap":false},"1.0.1":{"name":"connect-timeout","description":"timeout middleware","version":"1.0.1","author":{"name":"Jonathan Ong","email":"me@jongleberry.com","url":"http://jongleberry.com"},"license":"MIT","repository":{"type":"git","url":"https://github.com/expressjs/timeout.git"},"bugs":{"url":"https://github.com/expressjs/timeout/issues"},"dependencies":{"debug":"0.8.1"},"devDependencies":{"mocha":">= 1.18.0 < 2.0","should":">= 3.3.0 < 4.0","supertest":"*","connect":"*"},"engines":{"node":">= 0.8"},"scripts":{"test":"mocha --reporter spec --require should"},"homepage":"https://github.com/expressjs/timeout","_id":"connect-timeout@1.0.1","dist":{"shasum":"915a8bf048e329edf205bf5038b225d87c595852","size":2062,"noattachment":false,"key":"/connect-timeout/-/connect-timeout-1.0.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/connect-timeout/download/connect-timeout-1.0.1.tgz"},"_from":".","_npmVersion":"1.4.3","_npmUser":{"name":"dougwilson","email":"doug@somethingdoug.com"},"maintainers":[{"name":"aaron","email":"aaron.heckmann+github@gmail.com"},{"name":"fishrock123","email":"fishrock123@rocketmail.com"},{"name":"mscdex","email":"mscdex@mscdex.net"}],"directories":{},"publish_time":1398741938145,"_cnpm_publish_time":1398741938145,"_hasShrinkwrap":false},"1.0.0":{"name":"connect-timeout","description":"timeout middleware","version":"1.0.0","author":{"name":"Jonathan Ong","email":"me@jongleberry.com","url":"http://jongleberry.com"},"license":"MIT","repository":{"type":"git","url":"https://github.com/expressjs/timeout.git"},"bugs":{"url":"https://github.com/expressjs/timeout/issues"},"dependencies":{"debug":"*"},"devDependencies":{"mocha":"^1.17.0","should":"^3.0.0","supertest":"*","connect":"*"},"scripts":{"test":"make test"},"homepage":"https://github.com/expressjs/timeout","_id":"connect-timeout@1.0.0","dist":{"shasum":"12054799f90bb9566f8b274efe7842d6465d10bb","size":1982,"noattachment":false,"key":"/connect-timeout/-/connect-timeout-1.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/connect-timeout/download/connect-timeout-1.0.0.tgz"},"_from":".","_npmVersion":"1.4.4","_npmUser":{"name":"jongleberry","email":"jonathanrichardong@gmail.com"},"maintainers":[{"name":"aaron","email":"aaron.heckmann+github@gmail.com"},{"name":"fishrock123","email":"fishrock123@rocketmail.com"},{"name":"mscdex","email":"mscdex@mscdex.net"}],"directories":{},"publish_time":1394051782140,"_cnpm_publish_time":1394051782140,"_hasShrinkwrap":false},"0.0.1":{"name":"connect-timeout","description":"Adds timeouts to connect responses","version":"0.0.1","author":{"name":"Guillermo Rauch","email":"guillermo@learnboost.com"},"keywords":["connect","timeout","response"],"dependencies":{},"main":"index","engines":{"node":">= 0.2.0"},"_id":"connect-timeout@0.0.1","_engineSupported":true,"_npmVersion":"0.2.17","_nodeVersion":"v0.2.6","directories":{},"files":[""],"_defaultsLoaded":true,"dist":{"shasum":"7f5ce841251d6bd0eb7b497b51186a56f37fc97f","size":1577,"noattachment":false,"key":"/connect-timeout/-/connect-timeout-0.0.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/connect-timeout/download/connect-timeout-0.0.1.tgz"},"publish_time":1297259213738,"maintainers":[{"name":"aaron","email":"aaron.heckmann+github@gmail.com"},{"name":"fishrock123","email":"fishrock123@rocketmail.com"},{"name":"mscdex","email":"mscdex@mscdex.net"}],"_cnpm_publish_time":1297259213738,"_hasShrinkwrap":false}},"readme":"# connect-timeout\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\nTimes out a request in the Connect/Express application framework.\n\n## Install\n\nThis is a [Node.js](https://nodejs.org/en/) module available through the\n[npm registry](https://www.npmjs.com/). Installation is done using the\n[`npm install` command](https://docs.npmjs.com/getting-started/installing-npm-packages-locally):\n\n```sh\n$ npm install connect-timeout\n```\n\n## API\n\n**NOTE** This module is not recommend as a \"top-level\" middleware (i.e.\n`app.use(timeout('5s'))`) unless you take precautions to halt your own\nmiddleware processing. See [as top-level middleware](#as-top-level-middleware)\nfor how to use as a top-level middleware.\n\nWhile the library will emit a 'timeout' event when requests exceed the given\ntimeout, node will continue processing the slow request until it terminates.\nSlow requests will continue to use CPU and memory, even if you are returning\na HTTP response in the timeout callback. For better control over CPU/memory,\nyou may need to find the events that are taking a long time (3rd party HTTP\nrequests, disk I/O, database calls) and find a way to cancel them, and/or\nclose the attached sockets.\n\n### timeout(time, [options])\n\nReturns middleware that times out in `time` milliseconds. `time` can also\nbe a string accepted by the [ms](https://www.npmjs.org/package/ms#readme)\nmodule. On timeout, `req` will emit `\"timeout\"`.\n\n#### Options\n\nThe `timeout` function takes an optional `options` object that may contain\nany of the following keys:\n\n##### respond\n\nControls if this module will \"respond\" in the form of forwarding an error.\nIf `true`, the timeout error is passed to `next()` so that you may customize\nthe response behavior. This error has a `.timeout` property as well as\n`.status == 503`. This defaults to `true`.\n\n### req.clearTimeout()\n\nClears the timeout on the request. The timeout is completely removed and\nwill not fire for this request in the future.\n\n### req.timedout\n\n`true` if timeout fired; `false` otherwise.\n\n## Examples\n\n### as top-level middleware\n\nBecause of the way middleware processing works, once this module\npasses the request to the next middleware (which it has to do in order\nfor you to do work), it can no longer stop the flow, so you must take\ncare to check if the request has timedout before you continue to act\non the request.\n\n```javascript\nvar bodyParser = require('body-parser')\nvar cookieParser = require('cookie-parser')\nvar express = require('express')\nvar timeout = require('connect-timeout')\n\n// example of using this top-level; note the use of haltOnTimedout\n// after every middleware; it will stop the request flow on a timeout\nvar app = express()\napp.use(timeout('5s'))\napp.use(bodyParser())\napp.use(haltOnTimedout)\napp.use(cookieParser())\napp.use(haltOnTimedout)\n\n// Add your routes here, etc.\n\nfunction haltOnTimedout (req, res, next) {\n  if (!req.timedout) next()\n}\n\napp.listen(3000)\n```\n\n### express 3.x\n\n```javascript\nvar express = require('express')\nvar bodyParser = require('body-parser')\nvar timeout = require('connect-timeout')\n\nvar app = express()\napp.post('/save', timeout('5s'), bodyParser.json(), haltOnTimedout, function (req, res, next) {\n  savePost(req.body, function (err, id) {\n    if (err) return next(err)\n    if (req.timedout) return\n    res.send('saved as id ' + id)\n  })\n})\n\nfunction haltOnTimedout (req, res, next) {\n  if (!req.timedout) next()\n}\n\nfunction savePost (post, cb) {\n  setTimeout(function () {\n    cb(null, ((Math.random() * 40000) >>> 0))\n  }, (Math.random() * 7000) >>> 0)\n}\n\napp.listen(3000)\n```\n\n### connect\n\n```javascript\nvar bodyParser = require('body-parser')\nvar connect = require('connect')\nvar timeout = require('connect-timeout')\n\nvar app = connect()\napp.use('/save', timeout('5s'), bodyParser.json(), haltOnTimedout, function (req, res, next) {\n  savePost(req.body, function (err, id) {\n    if (err) return next(err)\n    if (req.timedout) return\n    res.send('saved as id ' + id)\n  })\n})\n\nfunction haltOnTimedout (req, res, next) {\n  if (!req.timedout) next()\n}\n\nfunction savePost (post, cb) {\n  setTimeout(function () {\n    cb(null, ((Math.random() * 40000) >>> 0))\n  }, (Math.random() * 7000) >>> 0)\n}\n\napp.listen(3000)\n```\n\n## License\n\n[MIT](LICENSE)\n\n[npm-image]: https://img.shields.io/npm/v/connect-timeout.svg\n[npm-url]: https://npmjs.org/package/connect-timeout\n[travis-image]: https://img.shields.io/travis/expressjs/timeout/master.svg\n[travis-url]: https://travis-ci.org/expressjs/timeout\n[coveralls-image]: https://img.shields.io/coveralls/expressjs/timeout/master.svg\n[coveralls-url]: https://coveralls.io/r/expressjs/timeout?branch=master\n[downloads-image]: https://img.shields.io/npm/dm/connect-timeout.svg\n[downloads-url]: https://npmjs.org/package/connect-timeout\n[gratipay-image]: https://img.shields.io/gratipay/dougwilson.svg\n[gratipay-url]: https://www.gratipay.com/dougwilson/\n","_attachments":{},"homepage":"https://github.com/expressjs/timeout#readme","bugs":{"url":"https://github.com/expressjs/timeout/issues"},"license":"MIT"}