Gathering detailed insights and metrics for timers-ext
Gathering detailed insights and metrics for timers-ext
Gathering detailed insights and metrics for timers-ext
Gathering detailed insights and metrics for timers-ext
npm install timers-ext
Typescript
Module System
Min. Node Version
Node Version
NPM Version
JavaScript (100%)
Total Downloads
1,003,241,951
Last Day
659,589
Last Week
4,123,769
Last Month
18,315,532
Last Year
213,549,714
ISC License
3 Stars
91 Commits
3 Watchers
1 Branches
1 Contributors
Updated on Jun 03, 2024
Latest Version
0.1.8
Package Id
timers-ext@0.1.8
Unpacked Size
11.83 kB
Size
4.65 kB
File Count
13
NPM Version
10.5.2
Node Version
20.13.1
Published on
Jun 03, 2024
Cumulative downloads
Total Downloads
Last Day
7.6%
659,589
Compared to previous day
Last Week
1.1%
4,123,769
Compared to previous week
Last Month
-7.3%
18,315,532
Compared to previous month
Last Year
10.2%
213,549,714
Compared to previous year
$ npm install timers-ext
To port it to Browser or any other (non CJS) environment, use your favorite CJS bundler. No favorite yet? Try: Browserify, Webmake or Webpack
Maximum possible timeout value in milliseconds. It equals to maximum positive value for 32bit signed integer, so 2³¹ (2147483647), which makes it around 24.9 days
Returns function which when invoked will call fn function after specified timeout. If timeout is not provided nextTick propagation is used.
Makes sure to execute fn function only once after a defined interval of time (debounce). If timeout is not provided nextTick propagation is used.
1var nextTick = require("next-tick"); 2var logFoo = function () { console.log("foo"); }; 3var logFooOnce = require("timers-ext/once")(logFoo); 4 5logFooOnce(); 6logFooOnce(); // ignored, logFoo will be logged only once 7logFooOnce(); // ignored 8 9nextTick(function () { 10 logFooOnce(); // Invokes another log (as tick passed) 11 logFooOnce(); // ignored 12 logFooOnce(); // ignored 13});
Validates timeout value.
For NaN
resolved timeout 0
is returned.
If timeout resolves to a number:
0
is returnedtimeout
value is returned$ npm test
To report a security vulnerability, please use the Tidelift security contact. Tidelift will coordinate the fix and disclosure.
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
0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0
Reason
no SAST tool detected
Details
Reason
Found 0/30 approved changesets -- score normalized to 0
Reason
detected GitHub workflow tokens with excessive permissions
Details
Reason
no effort to earn an OpenSSF best practices badge detected
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-05-05
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