{"_id":"@rexxars/timed-out","_rev":"3-82250e597a1ea002ee8ecffe1b0c59c3","name":"@rexxars/timed-out","description":"Emit `ETIMEDOUT` or `ESOCKETTIMEDOUT` when ClientRequest is hanged","dist-tags":{"latest":"3.0.1"},"versions":{"3.0.1":{"name":"@rexxars/timed-out","version":"3.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":"a5513f65c45d9e94998a45135113784bd6a1e6f0","bugs":{"url":"https://github.com/floatdrop/timed-out/issues"},"homepage":"https://github.com/floatdrop/timed-out#readme","_id":"@rexxars/timed-out@3.0.1","_shasum":"c8a435891708323ac01bd108e88ed09713b3df66","_from":".","_npmVersion":"3.10.8","_nodeVersion":"6.9.1","_npmUser":{"name":"rexxars","email":"rexxars@gmail.com"},"dist":{"shasum":"c8a435891708323ac01bd108e88ed09713b3df66","tarball":"https://registry.npmjs.org/@rexxars/timed-out/-/timed-out-3.0.1.tgz","integrity":"sha512-CIpk5h1/pt3fVJOeTSAalniHgod6jqDBHFho1s7d7+xpyZrolpIFqUtMobH9s6HGvSKi+qa7jZRcMByvdPzR2Q==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDKolj4WmLdHeluxrrIVEZY6mTEH37ZK5u8GhgndRLqBwIgBVrVjFKHgOFht+iikE7uQyhG4zpIFTuD2RmvVpBm+rE="}]},"maintainers":[{"name":"rexxars","email":"rexxars@gmail.com"}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/timed-out-3.0.1.tgz_1481140291463_0.951309708179906"}}},"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`\n\nTime in milliseconds to wait for `connect` event on socket and also time to wait on inactive socket.\n\n## License\n\nMIT © [Vsevolod Strukchinsky](floatdrop@gmail.com)\n","maintainers":[{"name":"rexxars","email":"rexxars@gmail.com"}],"time":{"modified":"2022-06-12T23:11:40.373Z","created":"2016-12-07T19:51:33.471Z","3.0.1":"2016-12-07T19:51:33.471Z"},"homepage":"https://github.com/floatdrop/timed-out#readme","keywords":["http","https","get","got","url","uri","request","util","utility","simple"],"repository":{"type":"git","url":"git+https://github.com/floatdrop/timed-out.git"},"author":{"name":"Vsevolod Strukchinsky","email":"floatdrop@gmail.com"},"bugs":{"url":"https://github.com/floatdrop/timed-out/issues"},"license":"MIT","readmeFilename":"readme.md"}