{"name":"is-retry-allowed","version":"1.1.0","description":"My prime module","license":"MIT","repository":{"type":"git","url":"git+https://github.com/floatdrop/is-retry-allowed.git"},"author":{"name":"Vsevolod Strukchinsky","email":"floatdrop@gmail.com","url":"github.com/floatdrop"},"engines":{"node":">=0.10.0"},"scripts":{"test":"xo && ava"},"files":["index.js"],"keywords":[],"dependencies":{},"devDependencies":{"ava":"^0.8.0","xo":"^0.12.1"},"gitHead":"8ca0d01b23b0a92bcf232d97801c3f08c41231a3","bugs":{"url":"https://github.com/floatdrop/is-retry-allowed/issues"},"homepage":"https://github.com/floatdrop/is-retry-allowed#readme","_id":"is-retry-allowed@1.1.0","_shasum":"11a060568b67339444033d0125a61a20d564fb34","_from":".","_npmVersion":"2.15.8","_nodeVersion":"4.4.7","_npmUser":{"name":"floatdrop","email":"floatdrop@gmail.com"},"dist":{"shasum":"11a060568b67339444033d0125a61a20d564fb34","tarball":"http://registry-npm.ywwl.com/is-retry-allowed/download/is-retry-allowed-1.1.0.tgz","integrity":"sha512-leC1bcIRBHjXtaZSM2gAXNeZsIOdDMgq/kHKAVKQ05JTwvb7hnvrHBEm6mnnMRyE7yu+ljNlcG8YUmALCevSxg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCjDlAVVxHSfvir+ZlBIR6XRJDyJ6wfa34GijNYins7uQIgX8WyiRYXuRIMU8zumAdEP6fLgWS3ECjDXgTkF1Em69U="}],"size":1959,"noattachment":false,"key":"/is-retry-allowed/-/is-retry-allowed-1.1.0.tgz"},"maintainers":[{"name":"floatdrop","email":"floatdrop@gmail.com"},{"name":"sindresorhus","email":"sindresorhus@gmail.com"}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/is-retry-allowed-1.1.0.tgz_1467498831328_0.0396464669611305"},"directories":{},"readme":"# is-retry-allowed\n\n> Check whether a request can be retried based on the `error.code`\n\n## Install\n\n```\n$ npm install is-retry-allowed\n```\n\n## Usage\n\n```js\nimport isRetryAllowed from 'is-retry-allowed';\n\nisRetryAllowed({code: 'ETIMEDOUT'});\n//=> true\n\nisRetryAllowed({code: 'ENOTFOUND'});\n//=> false\n\nisRetryAllowed({});\n//=> true\n```\n\n## API\n\n### isRetryAllowed(error)\n\n#### error\n\nType: `Error | object`\n\nThe `.code` property, if it exists, will be used to determine whether retry is allowed.\n\n---\n\n<div align=\"center\">\n\t<b>\n\t\t<a href=\"https://tidelift.com/subscription/pkg/npm-is-retry-allowed?utm_source=npm-is-retry-allowed&utm_medium=referral&utm_campaign=readme\">Get professional support for this package with a Tidelift subscription</a>\n\t</b>\n\t<br>\n\t<sub>\n\t\tTidelift helps make open source sustainable for maintainers while giving companies<br>assurances about security, maintenance, and licensing for their dependencies.\n\t</sub>\n</div>\n","publish_time":1467498833617,"_cnpm_publish_time":1467498833617,"dist-tags":{"latest":"3.0.0"}}