goreleaser-action/node_modules/is-retry-allowed
CrazyMax e28e23212c Initial commit 2019-09-20 22:23:46 +02:00
..
index.js Initial commit 2019-09-20 22:23:46 +02:00
license Initial commit 2019-09-20 22:23:46 +02:00
package.json Initial commit 2019-09-20 22:23:46 +02:00
readme.md Initial commit 2019-09-20 22:23:46 +02:00

readme.md

is-retry-allowed Build Status

Is retry allowed for Error?

Install

$ npm install --save is-retry-allowed

Usage

const isRetryAllowed = require('is-retry-allowed');

isRetryAllowed({code: 'ETIMEDOUT'});
//=> true

isRetryAllowed({code: 'ENOTFOUND'});
//=> false

isRetryAllowed({});
//=> true

API

isRetryAllowed(error)

error

Type: object

Object with code property, which will be used to determine retry.

License

MIT © Vsevolod Strukchinsky