Gathering detailed insights and metrics for timers-browserify-full
Gathering detailed insights and metrics for timers-browserify-full
npm install timers-browserify-full
Typescript
Module System
Node Version
NPM Version
74.6
Supply Chain
96.3
Quality
75.1
Maintenance
100
Vulnerability
100
License
JavaScript (100%)
Total Downloads
13,372
Last Day
2
Last Week
12
Last Month
91
Last Year
2,077
8 Commits
1 Forks
2 Watching
1 Branches
1 Contributors
Minified
Minified + Gzipped
Latest Version
0.0.1
Package Id
timers-browserify-full@0.0.1
Size
14.60 kB
NPM Version
2.5.1
Node Version
0.12.0
Publised On
12 Feb 2015
Cumulative downloads
Total Downloads
Last day
100%
2
Compared to previous day
Last week
-45.5%
12
Compared to previous week
Last month
-44.8%
91
Compared to previous month
Last year
68.5%
2,077
Compared to previous year
8
This module is based on the original source files of node v0.12.0. This means that it is as compatible to node as possible, and it also uses linked lists like node. But it also means that it is quite heavy, and not necessary for most browserify projects. If you don't heavily use timers, the timers-browserify module, which is already integrated in browserify, is probably better suited.
Size: 1.73KB gzipped (4.45KB uncompressed)
1npm install timers-browserify-full
To use it with browserify, you have to use the js API of browserify; the command line API does not support changing builtins.
Example:
1var browserify = require('browserify'); 2 3var builtins = require('browserify/lib/builtins.js'); 4builtins.timers = require.resolve('timers-browserify-full'); 5 6var b = browserify(); 7 8b.add(...
The above example will use timers-browserify-full for all browserify builds. If you only want it for a specific build of a larger build script:
1var browserify = require('browserify'); 2 3var builtins = require('browserify/lib/builtins.js'); 4var myBuiltins = {}; 5Object.keys(builtins).forEach(function(key) { 6 myBuiltins[key] = builtins[key]; 7}); 8 9myBuiltins.timers = require.resolve('timers-browserify-full') 10 11var b = browserify({builtins: myBuiltins}); 12 13b.add(...
In node, the functions setTimeout, clearTimeout, setInterval, clearInterval, setImmediate & clearImmediate are added to the global namespace. I don't recommend doing this in the browser, because it overrides the native functions. But you can use the following snippet inside your modules — this doesn't touch the global namespace:
1var timers = require('timers'); 2 3var setTimeout = timers.setTimeout, 4 clearTimeout = timers.clearTimeout, 5 setInterval = timers.setInterval, 6 clearInterval = timers.clearInterval, 7 setImmediate = timers.setImmediate, 8 clearImmediate = timers.clearImmediate;
The two main files, timers.js and _linklist.js, are of course based on joyent/node; the _linklist.js file is even untouched!
The two scripts in bin
are borrowed from feross/buffer with modifications.
MIT
No vulnerabilities found.
Reason
no binaries found in the repo
Reason
0 existing vulnerabilities detected
Reason
license file detected
Details
Reason
Found 0/8 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
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-01-06
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