{"maintainers":[{"name":"floatdrop","email":"floatdrop@gmail.com"}],"keywords":["http","https","get","got","url","uri","request","util","utility","simple"],"dist-tags":{"latest":"4.0.1"},"author":{"name":"Vsevolod Strukchinsky","email":"floatdrop@gmail.com"},"description":"Emit `ETIMEDOUT` or `ESOCKETTIMEDOUT` when ClientRequest is hanged","readme":"# timed-out [![Build Status](https://travis-ci.org/floatdrop/timed-out.svg?branch=master)](https://travis-ci.org/floatdrop/timed-out)\n\n> Timeout HTTP/HTTPS requests\n\nEmit Error object with `code` property equal `ETIMEDOUT` or `ESOCKETTIMEDOUT` when ClientRequest is hanged.\n\n## Usage\n\n```js\nvar get = require('http').get;\nvar timeout = require('timed-out');\n\nvar req = get('http://www.google.ru');\ntimeout(req, 2000); // Set 2 seconds limit\n```\n\n### API\n\n#### timedout(request, time)\n\n##### request\n\n*Required*  \nType: [`ClientRequest`](http://nodejs.org/api/http.html#http_class_http_clientrequest)\n\nThe request to watch on.\n\n##### time\n\n*Required*  \nType: `number` or `object`\n\nTime in milliseconds to wait for `connect` event on socket and also time to wait on inactive socket.\n\nOr you can pass Object with following fields:\n\n- `connect` - time to wait for connection\n- `socket`  - time to wait for activity on socket\n\n## License\n\nMIT © [Vsevolod Strukchinsky](floatdrop@gmail.com)\n","repository":{"type":"git","url":"git+https://github.com/floatdrop/timed-out.git"},"users":{"timdp":true,"tobiasnickel":true,"nickeltobias":true},"bugs":{"url":"https://github.com/floatdrop/timed-out/issues"},"license":"MIT","versions":{"1.0.0":{"name":"timed-out","version":"1.0.0","description":"Emit `ETIMEDOUT` or `ESOCKETTIMEDOUT` when ClientRequest is hanged","license":"MIT","repository":{"type":"git","url":"https://github.com/floatdrop/timed-out"},"author":{"name":"Vsevolod Strukchinsky","email":"floatdrop@gmail.com"},"engines":{"node":">=0.10.0"},"scripts":{"test":"mocha"},"files":["index.js"],"keywords":["http","https","get","got","url","uri","request","util","utility","simple"],"devDependencies":{"mocha":"*"},"gitHead":"ea14a4cb9842a3af5fbd65ce8f9b92b3af883bc7","bugs":{"url":"https://github.com/floatdrop/timed-out/issues"},"homepage":"https://github.com/floatdrop/timed-out","_id":"timed-out@1.0.0","_shasum":"1538ec68c00ad81dd7830d3e0df0438ad0eaa792","_from":".","_npmVersion":"1.4.28","_npmUser":{"name":"floatdrop","email":"floatdrop@gmail.com"},"maintainers":[{"name":"floatdrop","email":"floatdrop@gmail.com"}],"dist":{"shasum":"1538ec68c00ad81dd7830d3e0df0438ad0eaa792","tarball":"http://nexus.dui88.com:8081/nexus/content/repositories/npm-registry/timed-out/-/timed-out-1.0.0.tgz"},"directories":{}},"2.0.0":{"name":"timed-out","version":"2.0.0","description":"Emit `ETIMEDOUT` or `ESOCKETTIMEDOUT` when ClientRequest is hanged","license":"MIT","repository":{"type":"git","url":"https://github.com/floatdrop/timed-out"},"author":{"name":"Vsevolod Strukchinsky","email":"floatdrop@gmail.com"},"engines":{"node":">=0.10.0"},"scripts":{"test":"mocha"},"files":["index.js"],"keywords":["http","https","get","got","url","uri","request","util","utility","simple"],"devDependencies":{"mocha":"*"},"gitHead":"2f35278f664de824923bfacf48d5e695f300bc69","bugs":{"url":"https://github.com/floatdrop/timed-out/issues"},"homepage":"https://github.com/floatdrop/timed-out","_id":"timed-out@2.0.0","_shasum":"f38b0ae81d3747d628001f41dafc652ace671c0a","_from":".","_npmVersion":"1.4.28","_npmUser":{"name":"floatdrop","email":"floatdrop@gmail.com"},"maintainers":[{"name":"floatdrop","email":"floatdrop@gmail.com"}],"dist":{"shasum":"f38b0ae81d3747d628001f41dafc652ace671c0a","tarball":"http://nexus.dui88.com:8081/nexus/content/repositories/npm-registry/timed-out/-/timed-out-2.0.0.tgz"},"directories":{}},"3.0.0":{"name":"timed-out","version":"3.0.0","description":"Emit `ETIMEDOUT` or `ESOCKETTIMEDOUT` when ClientRequest is hanged","license":"MIT","repository":{"type":"git","url":"git+https://github.com/floatdrop/timed-out.git"},"author":{"name":"Vsevolod Strukchinsky","email":"floatdrop@gmail.com"},"engines":{"node":">=0.10.0"},"scripts":{"test":"xo && mocha"},"files":["index.js"],"keywords":["http","https","get","got","url","uri","request","util","utility","simple"],"devDependencies":{"mocha":"*","xo":"^0.16.0"},"gitHead":"c8521babfbaa888e76478e771dbb00b3719fbaf2","bugs":{"url":"https://github.com/floatdrop/timed-out/issues"},"homepage":"https://github.com/floatdrop/timed-out#readme","_id":"timed-out@3.0.0","_shasum":"ff88de96030ce960eabd42487db61d3add229273","_from":".","_npmVersion":"3.10.3","_nodeVersion":"6.6.0","_npmUser":{"name":"floatdrop","email":"floatdrop@gmail.com"},"dist":{"shasum":"ff88de96030ce960eabd42487db61d3add229273","tarball":"http://nexus.dui88.com:8081/nexus/content/repositories/npm-registry/timed-out/-/timed-out-3.0.0.tgz"},"maintainers":[{"name":"floatdrop","email":"floatdrop@gmail.com"}],"_npmOperationalInternal":{"host":"packages-16-east.internal.npmjs.com","tmp":"tmp/timed-out-3.0.0.tgz_1474205415994_0.9712003509048373"},"directories":{}},"3.1.0":{"name":"timed-out","version":"3.1.0","description":"Emit `ETIMEDOUT` or `ESOCKETTIMEDOUT` when ClientRequest is hanged","license":"MIT","repository":{"type":"git","url":"git+https://github.com/floatdrop/timed-out.git"},"author":{"name":"Vsevolod Strukchinsky","email":"floatdrop@gmail.com"},"engines":{"node":">=0.10.0"},"scripts":{"test":"xo && mocha"},"files":["index.js"],"keywords":["http","https","get","got","url","uri","request","util","utility","simple"],"devDependencies":{"mocha":"*","xo":"^0.16.0"},"gitHead":"b0cda2cc6e7ba845a693d028f4328af44d2bbd3b","bugs":{"url":"https://github.com/floatdrop/timed-out/issues"},"homepage":"https://github.com/floatdrop/timed-out#readme","_id":"timed-out@3.1.0","_shasum":"43b98b14bb712c9161c28f4dc1f3068d67a04ec2","_from":".","_npmVersion":"3.10.8","_nodeVersion":"6.9.1","_npmUser":{"name":"floatdrop","email":"floatdrop@gmail.com"},"dist":{"shasum":"43b98b14bb712c9161c28f4dc1f3068d67a04ec2","tarball":"http://nexus.dui88.com:8081/nexus/content/repositories/npm-registry/timed-out/-/timed-out-3.1.0.tgz"},"maintainers":[{"name":"floatdrop","email":"floatdrop@gmail.com"}],"_npmOperationalInternal":{"host":"packages-18-east.internal.npmjs.com","tmp":"tmp/timed-out-3.1.0.tgz_1481717026855_0.7532401555217803"},"directories":{}},"3.1.1":{"name":"timed-out","version":"3.1.1","description":"Emit `ETIMEDOUT` or `ESOCKETTIMEDOUT` when ClientRequest is hanged","license":"MIT","repository":{"type":"git","url":"git+https://github.com/floatdrop/timed-out.git"},"author":{"name":"Vsevolod Strukchinsky","email":"floatdrop@gmail.com"},"engines":{"node":">=0.10.0"},"scripts":{"test":"xo && mocha"},"files":["index.js"],"keywords":["http","https","get","got","url","uri","request","util","utility","simple"],"devDependencies":{"mocha":"*","xo":"^0.16.0"},"gitHead":"37ca32755d74622f3345e7b363e010ccf53b013e","bugs":{"url":"https://github.com/floatdrop/timed-out/issues"},"homepage":"https://github.com/floatdrop/timed-out#readme","_id":"timed-out@3.1.1","_shasum":"2eaaa1021888e4ce3b6ce3511fa7a8556114752b","_from":".","_npmVersion":"2.15.1","_nodeVersion":"0.12.17","_npmUser":{"name":"floatdrop","email":"floatdrop@gmail.com"},"dist":{"shasum":"2eaaa1021888e4ce3b6ce3511fa7a8556114752b","tarball":"http://nexus.dui88.com:8081/nexus/content/repositories/npm-registry/timed-out/-/timed-out-3.1.1.tgz"},"maintainers":[{"name":"floatdrop","email":"floatdrop@gmail.com"}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/timed-out-3.1.1.tgz_1482866003533_0.7448440415319055"},"directories":{}},"3.1.2":{"name":"timed-out","version":"3.1.2","description":"Emit `ETIMEDOUT` or `ESOCKETTIMEDOUT` when ClientRequest is hanged","license":"MIT","repository":{"type":"git","url":"git+https://github.com/floatdrop/timed-out.git"},"author":{"name":"Vsevolod Strukchinsky","email":"floatdrop@gmail.com"},"engines":{"node":">=0.10.0"},"scripts":{"test":"xo && mocha"},"files":["index.js"],"keywords":["http","https","get","got","url","uri","request","util","utility","simple"],"devDependencies":{"mocha":"*","xo":"^0.16.0"},"gitHead":"e8086b636ea66048aba51a3affee12e264794163","bugs":{"url":"https://github.com/floatdrop/timed-out/issues"},"homepage":"https://github.com/floatdrop/timed-out#readme","_id":"timed-out@3.1.2","_shasum":"7921a61c1591058fe696114d90b3940889dda545","_from":".","_npmVersion":"3.10.9","_nodeVersion":"6.9.2","_npmUser":{"name":"floatdrop","email":"floatdrop@gmail.com"},"dist":{"shasum":"7921a61c1591058fe696114d90b3940889dda545","tarball":"http://nexus.dui88.com:8081/nexus/content/repositories/npm-registry/timed-out/-/timed-out-3.1.2.tgz"},"maintainers":[{"name":"floatdrop","email":"floatdrop@gmail.com"}],"_npmOperationalInternal":{"host":"packages-18-east.internal.npmjs.com","tmp":"tmp/timed-out-3.1.2.tgz_1482949122037_0.8534699825104326"},"directories":{}},"3.1.3":{"name":"timed-out","version":"3.1.3","description":"Emit `ETIMEDOUT` or `ESOCKETTIMEDOUT` when ClientRequest is hanged","license":"MIT","repository":{"type":"git","url":"git+https://github.com/floatdrop/timed-out.git"},"author":{"name":"Vsevolod Strukchinsky","email":"floatdrop@gmail.com"},"engines":{"node":">=0.10.0"},"scripts":{"test":"xo && mocha"},"files":["index.js"],"keywords":["http","https","get","got","url","uri","request","util","utility","simple"],"devDependencies":{"mocha":"*","xo":"^0.16.0"},"gitHead":"eadea0f4c2122784a6b57f657de3a16762ec153b","bugs":{"url":"https://github.com/floatdrop/timed-out/issues"},"homepage":"https://github.com/floatdrop/timed-out#readme","_id":"timed-out@3.1.3","_shasum":"95860bfcc5c76c277f8f8326fd0f5b2e20eba217","_from":".","_npmVersion":"3.10.9","_nodeVersion":"6.9.2","_npmUser":{"name":"floatdrop","email":"floatdrop@gmail.com"},"dist":{"shasum":"95860bfcc5c76c277f8f8326fd0f5b2e20eba217","tarball":"http://nexus.dui88.com:8081/nexus/content/repositories/npm-registry/timed-out/-/timed-out-3.1.3.tgz"},"maintainers":[{"name":"floatdrop","email":"floatdrop@gmail.com"}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/timed-out-3.1.3.tgz_1482989351228_0.5811902172863483"},"directories":{}},"4.0.0":{"name":"timed-out","version":"4.0.0","description":"Emit `ETIMEDOUT` or `ESOCKETTIMEDOUT` when ClientRequest is hanged","license":"MIT","repository":{"type":"git","url":"git+https://github.com/floatdrop/timed-out.git"},"author":{"name":"Vsevolod Strukchinsky","email":"floatdrop@gmail.com"},"engines":{"node":">=0.10.0"},"scripts":{"test":"xo && mocha"},"files":["index.js"],"keywords":["http","https","get","got","url","uri","request","util","utility","simple"],"devDependencies":{"mocha":"*","xo":"^0.16.0"},"gitHead":"41347e64b682558f5d6fcd4afa036757eedb7c00","bugs":{"url":"https://github.com/floatdrop/timed-out/issues"},"homepage":"https://github.com/floatdrop/timed-out#readme","_id":"timed-out@4.0.0","_shasum":"b0fb98d7fed4f36b028698122769c07ef87a8690","_from":".","_npmVersion":"3.10.9","_nodeVersion":"6.9.2","_npmUser":{"name":"floatdrop","email":"floatdrop@gmail.com"},"dist":{"shasum":"b0fb98d7fed4f36b028698122769c07ef87a8690","tarball":"http://nexus.dui88.com:8081/nexus/content/repositories/npm-registry/timed-out/-/timed-out-4.0.0.tgz"},"maintainers":[{"name":"floatdrop","email":"floatdrop@gmail.com"}],"_npmOperationalInternal":{"host":"packages-18-east.internal.npmjs.com","tmp":"tmp/timed-out-4.0.0.tgz_1483005585788_0.9252240823116153"},"directories":{}},"4.0.1":{"name":"timed-out","version":"4.0.1","description":"Emit `ETIMEDOUT` or `ESOCKETTIMEDOUT` when ClientRequest is hanged","license":"MIT","repository":{"type":"git","url":"git+https://github.com/floatdrop/timed-out.git"},"author":{"name":"Vsevolod Strukchinsky","email":"floatdrop@gmail.com"},"engines":{"node":">=0.10.0"},"scripts":{"test":"xo && mocha"},"files":["index.js"],"keywords":["http","https","get","got","url","uri","request","util","utility","simple"],"devDependencies":{"mocha":"*","xo":"^0.16.0"},"gitHead":"2f00fdafb6af0a9b91fb23a04a9271766c5559a4","bugs":{"url":"https://github.com/floatdrop/timed-out/issues"},"homepage":"https://github.com/floatdrop/timed-out#readme","_id":"timed-out@4.0.1","_shasum":"f32eacac5a175bea25d7fab565ab3ed8741ef56f","_from":".","_npmVersion":"3.10.10","_nodeVersion":"6.9.3","_npmUser":{"name":"floatdrop","email":"floatdrop@gmail.com"},"dist":{"shasum":"f32eacac5a175bea25d7fab565ab3ed8741ef56f","tarball":"http://nexus.dui88.com:8081/nexus/content/repositories/npm-registry/timed-out/-/timed-out-4.0.1.tgz"},"maintainers":[{"name":"floatdrop","email":"floatdrop@gmail.com"}],"_npmOperationalInternal":{"host":"packages-18-east.internal.npmjs.com","tmp":"tmp/timed-out-4.0.1.tgz_1484575090971_0.24377561057917774"},"directories":{}}},"name":"timed-out","time":{"modified":"2017-01-16T13:58:11.638Z","created":"2014-11-21T19:18:22.681Z","1.0.0":"2014-11-21T19:18:22.681Z","2.0.0":"2014-12-02T06:59:14.579Z","3.0.0":"2016-09-18T13:30:17.923Z","3.1.0":"2016-12-14T12:03:47.576Z","3.1.1":"2016-12-27T19:13:25.410Z","3.1.2":"2016-12-28T18:18:42.636Z","3.1.3":"2016-12-29T05:29:13.281Z","4.0.0":"2016-12-29T09:59:46.455Z","4.0.1":"2017-01-16T13:58:11.638Z"},"readmeFilename":"readme.md","homepage":"https://github.com/floatdrop/timed-out#readme"}