{"name":"is-retry-allowed","version":"1.0.0","description":"My prime module","license":"MIT","repository":{"type":"git","url":"https://github.com/floatdrop/is-retry-allowed"},"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":"df50b6de4b86ff0931444c6e59455fb2c1867052","bugs":{"url":"https://github.com/floatdrop/is-retry-allowed/issues"},"homepage":"https://github.com/floatdrop/is-retry-allowed","_id":"is-retry-allowed@1.0.0","_shasum":"2b2070b151823d4044a8bbbf6285b0c42b8703de","_from":".","_npmVersion":"2.14.12","_nodeVersion":"4.2.4","_npmUser":{"name":"floatdrop","email":"floatdrop@gmail.com"},"dist":{"shasum":"2b2070b151823d4044a8bbbf6285b0c42b8703de","tarball":"http://registry-npm.ywwl.com/is-retry-allowed/download/is-retry-allowed-1.0.0.tgz","integrity":"sha512-NBjJIQefny4XbWtYi8DpK1xXOgiCqZ8wjEz9heOtpBOI+7hH7uWQJNpmUcw13CbPLFuJoVqgDY6yMqAaSCDLUg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIQDdE3R+QSbzJ4HykMrdqn0WC9emeeTnAHm6yvXGugYftAIfWuIRNGv0Sl7obzvSAF/7s+DlZC8WE3A7XMz5k4QN4Q=="}],"size":1591,"noattachment":false,"key":"/is-retry-allowed/-/is-retry-allowed-1.0.0.tgz"},"maintainers":[{"name":"floatdrop","email":"floatdrop@gmail.com"}],"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":1452933499114,"_cnpm_publish_time":1452933499114,"dist-tags":{"latest":"3.0.0"}}