vlad 6f123ff03e 18.07 | 6 rokov pred | |
---|---|---|
.. | ||
index.js | 6 rokov pred | |
license | 6 rokov pred | |
package.json | 6 rokov pred | |
readme.md | 6 rokov pred |
Is retry allowed for Error?
$ npm install --save is-retry-allowed
const isRetryAllowed = require('is-retry-allowed');
isRetryAllowed({code: 'ETIMEDOUT'});
//=> true
isRetryAllowed({code: 'ENOTFOUND'});
//=> false
isRetryAllowed({});
//=> true
Type: object
Object with code
property, which will be used to determine retry.
MIT © Vsevolod Strukchinsky