Gathering detailed insights and metrics for confusing-browser-globals-fresh
Gathering detailed insights and metrics for confusing-browser-globals-fresh
Gathering detailed insights and metrics for confusing-browser-globals-fresh
Gathering detailed insights and metrics for confusing-browser-globals-fresh
Set up a modern web app by running one command.
npm install confusing-browser-globals-fresh
Typescript
Module System
Node Version
NPM Version
72.4
Supply Chain
79.1
Quality
74.6
Maintenance
100
Vulnerability
100
License
JavaScript (98.35%)
Shell (1.21%)
CSS (0.15%)
HTML (0.12%)
AppleScript (0.09%)
TypeScript (0.07%)
SCSS (0.02%)
Sass (0.01%)
Total Downloads
297,572
Last Day
1
Last Week
2,843
Last Month
8,989
Last Year
71,936
MIT License
103,334 Stars
2,819 Commits
27,032 Forks
1,901 Watchers
28 Branches
960 Contributors
Updated on Jun 30, 2025
Minified
Minified + Gzipped
Latest Version
1.0.2
Package Id
confusing-browser-globals-fresh@1.0.2
Unpacked Size
2.70 kB
Size
1.35 kB
File Count
3
NPM Version
6.0.1
Node Version
10.1.0
Cumulative downloads
Total Downloads
Last Day
0%
1
Compared to previous day
Last Week
60.5%
2,843
Compared to previous week
Last Month
-14.7%
8,989
Compared to previous month
Last Year
21%
71,936
Compared to previous year
1
A curated list of browser globals that commonly cause confusion and are not recommended to use without an explicit window.
qualifier.
Some global variables in browser are likely to be used by people without the intent of using them as globals, such as status
, name
, event
, etc.
For example:
1handleClick() { // missing `event` argument
2 this.setState({
3 text: event.target.value // uses the `event` global: oops!
4 });
5}
This package exports a list of globals that are often used by mistake. You can feed this list to a static analysis tool like ESLint to prevent their usage without an explicit window.
qualifier.
npm install --save confusing-browser-globals
If you use Create React App, you don't need to configure anything, as this rule is already included in the default eslint-config-react-app
preset.
If you maintain your own ESLint configuration, you can do this:
1var restrictedGlobals = require('confusing-browser-globals'); 2 3module.exports = { 4 rules: { 5 'no-restricted-globals': ['error'].concat(restrictedGlobals), 6 } 7};
MIT
No vulnerabilities found.
Reason
security policy file detected
Details
Reason
no dangerous workflow patterns detected
Reason
license file detected
Details
Reason
no binaries found in the repo
Reason
Found 11/15 approved changesets -- score normalized to 7
Reason
dependency not pinned by hash detected -- score normalized to 2
Details
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
detected GitHub workflow tokens with excessive permissions
Details
Reason
project is not fuzzed
Details
Reason
SAST tool is not run on all commits -- score normalized to 0
Details
Reason
93 existing vulnerabilities detected
Details
Score
Last Scanned on 2025-06-23
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