Gathering detailed insights and metrics for is-retry-allowed
Gathering detailed insights and metrics for is-retry-allowed
Gathering detailed insights and metrics for is-retry-allowed
Gathering detailed insights and metrics for is-retry-allowed
Check whether a request can be retried based on the `error.code`
npm install is-retry-allowed
Typescript
Module System
Min. Node Version
Node Version
NPM Version
JavaScript (94.21%)
TypeScript (5.79%)
Total Downloads
0
Last Day
0
Last Week
0
Last Month
0
Last Year
0
MIT License
81 Stars
22 Commits
18 Forks
2 Watchers
1 Branches
6 Contributors
Updated on Jun 17, 2025
Latest Version
3.0.0
Package Id
is-retry-allowed@3.0.0
Size
2.22 kB
NPM Version
6.14.10
Node Version
12.22.1
Published on
Apr 17, 2021
Cumulative downloads
Total Downloads
Last Day
0%
NaN
Compared to previous day
Last Week
0%
NaN
Compared to previous week
Last Month
0%
NaN
Compared to previous month
Last Year
0%
NaN
Compared to previous year
Check whether a request can be retried based on the
error.code
$ npm install is-retry-allowed
1import isRetryAllowed from 'is-retry-allowed'; 2 3isRetryAllowed({code: 'ETIMEDOUT'}); 4//=> true 5 6isRetryAllowed({code: 'ENOTFOUND'}); 7//=> false 8 9isRetryAllowed({}); 10//=> true
Type: Error | object
The .code
property, if it exists, will be used to determine whether retry is allowed.
No vulnerabilities found.
Reason
no binaries found in the repo
Reason
no dangerous workflow patterns detected
Reason
security policy file detected
Details
Reason
0 existing vulnerabilities detected
Reason
license file detected
Details
Reason
Found 6/21 approved changesets -- score normalized to 2
Reason
detected GitHub workflow tokens with excessive permissions
Details
Reason
0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0
Reason
dependency not pinned by hash detected -- score normalized to 0
Details
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
project is not fuzzed
Details
Reason
branch protection not enabled on development/release branches
Details
Reason
SAST tool is not run on all commits -- score normalized to 0
Details
Score
Last Scanned on 2025-06-30
The Open Source Security Foundation is a cross-industry collaboration to improve the security of open source software (OSS). The Scorecard provides security health metrics for open source projects.
Learn More