Gathering detailed insights and metrics for @iocmd/hold-up
Gathering detailed insights and metrics for @iocmd/hold-up
Gathering detailed insights and metrics for @iocmd/hold-up
Gathering detailed insights and metrics for @iocmd/hold-up
npm install @iocmd/hold-up
Typescript
Module System
Min. Node Version
Node Version
NPM Version
JavaScript (100%)
Total Downloads
0
Last Day
0
Last Week
0
Last Month
0
Last Year
0
MIT License
2 Stars
54 Commits
1 Watchers
1 Branches
1 Contributors
Updated on Dec 02, 2023
Latest Version
2.1.0
Package Id
@iocmd/hold-up@2.1.0
Unpacked Size
6.76 kB
Size
2.90 kB
File Count
5
NPM Version
8.3.0
Node Version
16.14.2
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
2
hold up
is setInterval
with promises
, counter
and error handling
.
It runs a function
and if it throws
run it again with interval (defaults to 1 second) counter
times (defaults to 5). If it fails, promise throws, if successed resolves.
npm i @iocmd/hold-up --save
fn
- functionargs
- array of argumentsoptions
- options may contain:
log
count
time
1const holdUp = require('hold-up');
2const fn = async (a = 'hello') => {
3 throw Error(a);
4};
5
6await holdUp(fn);
7
8// reject in a 5 seconds
9// [Error: hello]
10
11// with arguments
12await holdUp([fn, 'world']);
13
14// reject in a 5 seconds
15//[Error: hello]
16
17// when you need to override options,
18await holdUp([fn, 'hello'], {
19 count: 5, // default
20 time: 1000, // default
21 log: () => {}, // default
22});
currify - translate the evaluation of a function that takes multiple arguments into evaluating a sequence of functions, each with a single or more arguments.
fullstore - functional variables.
wraptile - translate the evaluation of a function that takes multiple arguments into evaluating a sequence of 2 functions, each with a any count of arguments.
MIT
No vulnerabilities found.
Reason
no dangerous workflow patterns detected
Reason
no binaries found in the repo
Reason
0 existing vulnerabilities detected
Reason
license file detected
Details
Reason
Found 0/30 approved changesets -- score normalized to 0
Reason
0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0
Reason
no SAST tool detected
Details
Reason
detected GitHub workflow tokens with excessive permissions
Details
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
dependency not pinned by hash detected -- score normalized to 0
Details
Reason
security policy file not detected
Details
Reason
project is not fuzzed
Details
Reason
branch protection not enabled on development/release branches
Details
Score
Last Scanned on 2025-07-14
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