Installations
npm install browser-builtins
Score
49.4
Supply Chain
92.9
Quality
74.1
Maintenance
50
Vulnerability
97.9
License
Releases
Unable to fetch releases
Developer
alexgorbatchev
Developer Guide
Module System
CommonJS, UMD
Min. Node Version
Typescript Support
No
Node Version
4.0.0-pre
NPM Version
2.14.2
Statistics
62 Stars
145 Commits
30 Forks
8 Watching
2 Branches
19 Contributors
Updated on 28 Aug 2024
Languages
JavaScript (100%)
Total Downloads
Cumulative downloads
Total Downloads
678,192
Last day
12.4%
136
Compared to previous day
Last week
-50.3%
1,213
Compared to previous week
Last month
87.9%
9,061
Compared to previous month
Last year
52.2%
40,766
Compared to previous year
Daily Downloads
Weekly Downloads
Monthly Downloads
Yearly Downloads
Browser altenatives to built-in node.js modules
This is used by browserify
module. Initially these files were in node-browser-resolve
but disappeared in v1.0.1
which broke browserify
dependency. This module is that missing dependency.
Browser support
- Safari: latest
- Chrome: latest
- Firefox: latest
- Opera: latest
- Internet Explore: 10, 11
Legacy browsers
This decision behind not supporting legacy browsers was made to reduce the maintenance and allow usage of more advanced browser features such as TypedArrays. Please do not supply pull requests there adds support for legacy browsers. Instead we recommend that you use the necessary polyfills for legacy browser support. Should you be willing to start your own complete browser-builtins polyfills project, then feel free to contact us for tips and hints.
Documentation
Requireing this module gives you a simple map between the modulename and a
filepath to the module containing the shim. You can then point to these files
in your pseudo-node implementation. Note that beyond the nodecore modules
there is also a process module, there mimics global.process
in node.
1require('browser-builtins');
1{ 2 assert: '/user/node_modules/browser-builtins/builtin/assert.js', 3 child_process: '/user/node_modules/browser-builtins/builtin/child_process.js', 4 cluster: '/user/node_modules/browser-builtins/builtin/cluster.js', 5 dgram: '/user/node_modules/browser-builtins/builtin/dgram.js', 6 dns: '/user/node_modules/browser-builtins/builtin/dns.js', 7 domain: '/user/node_modules/browser-builtins/builtin/domain.js', 8 events: '/user/node_modules/browser-builtins/builtin/events.js', 9 fs: '/user/node_modules/browser-builtins/builtin/fs.js', 10 https: '/user/node_modules/browser-builtins/builtin/https.js', 11 net: '/user/node_modules/browser-builtins/builtin/net.js', 12 path: '/user/node_modules/browser-builtins/builtin/path.js', 13 process: '/user/node_modules/browser-builtins/builtin/process.js', 14 querystring: '/user/node_modules/browser-builtins/builtin/querystring.js', 15 readline: '/user/node_modules/browser-builtins/builtin/readline.js', 16 repl: '/user/node_modules/browser-builtins/builtin/repl.js', 17 stream: '/user/node_modules/browser-builtins/builtin/stream.js', 18 string_decoder: '/user/node_modules/browser-builtins/builtin/string_decoder.js', 19 sys: '/user/node_modules/browser-builtins/builtin/sys.js', 20 timers: '/user/node_modules/browser-builtins/builtin/timers.js', 21 tls: '/user/node_modules/browser-builtins/builtin/tls.js', 22 tty: '/user/node_modules/browser-builtins/builtin/tty.js', 23 url: '/user/node_modules/browser-builtins/builtin/url.js', 24 util: '/user/node_modules/browser-builtins/builtin/util.js', 25 punycode: '/user/node_modules/browser-builtins/node_modules/punycode/punycode.js', 26 http: '/user/node_modules/browser-builtins/node_modules/http-browserify/index.js', 27 vm: '/user/node_modules/browser-builtins/node_modules/vm-browserify/index.js', 28 crypto: '/user/node_modules/browser-builtins/node_modules/crypto-browserify/index.js', 29 console: '/user/node_modules/browser-builtins/node_modules/console-browserify/index.js', 30 zlib: '/user/node_modules/browser-builtins/node_modules/zlib-browserify/index.js', 31 buffer: '/user/node_modules/browser-builtins/node_modules/buffer/index.js', 32 constants: '/user/node_modules/browser-builtins/node_modules/constants-browserify/constants.json', 33 os: '/user/node_modules/browser-builtins/node_modules/os-browserify/browser.js' 34}
Contribute
When fixing a bug please check the following:
- Check that the bug do not exist in node and fix it there first
- Check that updating the code from the node source dosn't fix it
- It must be a browser issue, fix it here. But do please link to the browser bug report
Testing
node-browser-builtins
uses zuul for client side testing. In summary, all you will need is a Saucelabs account (free one will work just fine). To get up and running with it, please follow zuul instructions.
Finally, just run:
npm test
History
- "Forked" from
node-browser-resolve
, originally written by Roman Shtylman (@shtylman). - Major update to node v0.10 and tests (@AndreasMadsen)
- no legacy browser support (IE10+)
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
- Info: FSF or OSI recognized license: MIT License: LICENSE:0
Reason
Found 5/29 approved changesets -- score normalized to 1
Reason
0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
project is not fuzzed
Details
- Warn: no fuzzer integrations found
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
branch protection not enabled on development/release branches
Details
- Warn: branch protection not enabled for branch 'master'
Reason
SAST tool is not run on all commits -- score normalized to 0
Details
- Warn: 0 commits out of 7 are checked with a SAST tool
Score
3.2
/10
Last Scanned on 2024-11-25
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 MoreOther packages similar to browser-builtins
builtins
List of node.js builtin modules
@jspm/core
This package contains the core libraries used in jspm 2.
@babel/plugin-transform-runtime
Externalise references to helpers and builtins, automatically polyfilling your code without polluting globals
rollup-plugin-node-builtins
use node builtins in browser with rollup