Gathering detailed insights and metrics for p-min-delay
Gathering detailed insights and metrics for p-min-delay
Gathering detailed insights and metrics for p-min-delay
Gathering detailed insights and metrics for p-min-delay
npm install p-min-delay
Typescript
Module System
Min. Node Version
Node Version
NPM Version
84.3
Supply Chain
79.9
Quality
76.5
Maintenance
100
Vulnerability
100
License
JavaScript (86.3%)
TypeScript (13.7%)
Total Downloads
2,139,926
Last Day
1,242
Last Week
8,884
Last Month
38,816
Last Year
416,997
MIT License
166 Stars
26 Commits
12 Forks
6 Watchers
1 Branches
6 Contributors
Updated on Mar 01, 2025
Minified
Minified + Gzipped
Latest Version
4.1.0
Package Id
p-min-delay@4.1.0
Unpacked Size
4.42 kB
Size
2.11 kB
File Count
5
NPM Version
10.9.2
Node Version
23.6.1
Published on
Feb 24, 2025
Cumulative downloads
Total Downloads
Last Day
-5.3%
1,242
Compared to previous day
Last Week
7.4%
8,884
Compared to previous week
Last Month
-12%
38,816
Compared to previous month
Last Year
16.3%
416,997
Compared to previous year
Delay a promise a minimum amount of time
While the delay
module delays the promise a specified amount of time and then resolves it, this module ensures the promise resolves after the specified amount of time.
Useful when you have a promise that may settle immediately or may take some time, and you want to ensure it doesn't settle too fast. For example, if you want to show a loading indicator for at least 1 second (but longer if needed) to prevent a confusing flash in the UI.
1npm install p-min-delay
1import pMinDelay from 'p-min-delay'; 2 3const value = await pMinDelay(somePromise, 1000); 4// Executed after minimum 1 second even if `somePromise` fulfills before that
Type: Promise
Promise to delay.
Type: number
Time in milliseconds.
Type: Object
Type: boolean
Default: true
Delay the rejection.
Turn this off if you want a rejected promise to fail fast.
setImmediate()
No vulnerabilities found.
Reason
no binaries found in the repo
Reason
no dangerous workflow patterns detected
Reason
0 existing vulnerabilities detected
Reason
license file detected
Details
Reason
Found 9/26 approved changesets -- score normalized to 3
Reason
3 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 2
Reason
detected GitHub workflow tokens with excessive permissions
Details
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
security policy file not detected
Details
Reason
SAST tool is not run on all commits -- score normalized to 0
Details
Score
Last Scanned on 2025-04-28
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