Gathering detailed insights and metrics for yoctodelay
Gathering detailed insights and metrics for yoctodelay
Gathering detailed insights and metrics for yoctodelay
Gathering detailed insights and metrics for yoctodelay
npm install yoctodelay
Module System
Min. Node Version
Typescript Support
Node Version
NPM Version
117 Stars
12 Commits
14 Forks
4 Watching
1 Branches
5 Contributors
Updated on 13 Oct 2024
JavaScript (75.06%)
TypeScript (24.94%)
Cumulative downloads
Total Downloads
Last day
-14.3%
2,276
Compared to previous day
Last week
7.1%
16,743
Compared to previous week
Last month
20.5%
64,718
Compared to previous month
Last year
-26.6%
721,603
Compared to previous year
Delay a promise a specified amount of time
It's less than half the size of the nanodelay
module.
Note: If you target Node.js 16 or later, you can use the built-in functionality instead:
1import {setTimeout as delay} from 'node:timers/promises'; 2 3await delay(100);
$ npm install yoctodelay
1import delay from 'yoctodelay'; 2 3foo(); 4 5await delay(100); 6 7// Executed 100 milliseconds later 8bar();
Delay the promise and then resolve.
Type: number
The duration to delay the promise.
It's the smallest official unit prefix in the metric system. Much smaller than nano.
Partly. The nanodelay
module was created only because the delay
module is a tiny bit larger. Well, this module is a tiny bit smaller than the nanodelay
module. Comparing size at the byte level is super silly. It doesn't matter unless the difference is more than many kilobytes. This is still a fully working module though. Go ahead and use it.
No vulnerabilities found.
Reason
no binaries found in the repo
Reason
no dangerous workflow patterns detected
Reason
license file detected
Details
Reason
0 existing vulnerabilities detected
Reason
Found 4/12 approved changesets -- score normalized to 3
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
detected GitHub workflow tokens with excessive permissions
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 2024-11-18
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