Installations
npm install timers-browserify-full
Developer Guide
Typescript
No
Module System
CommonJS
Node Version
0.12.0
NPM Version
2.5.1
Score
74.6
Supply Chain
96.3
Quality
75.1
Maintenance
100
Vulnerability
100
License
Releases
Contributors
Unable to fetch Contributors
Languages
JavaScript (100%)
Developer
jscissr
Download Statistics
Total Downloads
13,372
Last Day
2
Last Week
12
Last Month
91
Last Year
2,077
GitHub Statistics
8 Commits
1 Forks
2 Watching
1 Branches
1 Contributors
Bundle Size
4.22 kB
Minified
1.58 kB
Minified + Gzipped
Package Meta Information
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
Total Downloads
Cumulative downloads
Total Downloads
13,372
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
Daily Downloads
Weekly Downloads
Monthly Downloads
Yearly Downloads
Dev Dependencies
8
timers-browserify-full
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)
install / usage with browserify
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(...
globals
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;
credit
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.
license
MIT
No vulnerabilities found.
Reason
no binaries found in the repo
Reason
0 existing vulnerabilities detected
Reason
license file detected
Details
- Info: project has a license file: LICENSE:0
- Warn: project license file does not contain an FSF or OSI license.
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
- Warn: no pull requests merged into dev branch
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
security policy file not detected
Details
- Warn: no security policy file detected
- Warn: no security file to analyze
- Warn: no security file to analyze
- Warn: no security file to analyze
Reason
project is not fuzzed
Details
- Warn: no fuzzer integrations found
Reason
branch protection not enabled on development/release branches
Details
- Warn: branch protection not enabled for branch 'master'
Score
3
/10
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