GitShow/sindresorhus/globals
sindresorhus

globals

Global identifiers from different JavaScript environments

by sindresorhus
Star on GitHubForknpm

JavaScript

606 stars134 forks105 contributorsActive · 2d agoSince 2013v17.11.0MIT

Meet the team

See all 105 on GitHub →
sindresorhus
sindresorhus204 contributions
fisker
fisker60 contributions
github-actions[bot]Bot
github-actions[bot]24 contributions
nzakas
nzakas15 contributions
es128
es12811 contributions
silverwind
silverwind10 contributions
kevva
kevva4 contributions
valorkin
valorkin3 contributions

Languages

View on GitHub →
JavaScript97.6%
HTML1.9%
TypeScript0.3%
Makefile0.2%

Commit activity

Last 12 weeks · 13 commits

Full graph →

Community health

4 of 6 standards met

Community profile →
85
✓README✓License✓Contributing✓Code of Conduct○Issue Template○PR Template

Recent PRs & issues

Active · 1 in progress · Last activity 2d ago
See all on GitHub →
asingh04
Globals for CubeJSOpenIssue

We are currently using CubeJs to run and maintain Data Models and run a semantic layer for the data analytics in production env. We are adding eslint for the JS files used in the applications, and it seems the applications seems to have it's own set of global variables. It would be nice to include those in the config specific for cube.

asingh04 · 23h ago
chenjiahan
Add Rstest globalsOpenPR

Rstest is a JavaScript testing framework similar to Jest and Vitest. This PR adds the global APIs exposed by its configuration to this package, maintained manually because Rstest currently does not provide an ESLint plugin. Related Links Rstest documentation https://github.com/web-infra-dev/rstest

chenjiahan · 1w ago
silverwind
Copy missing globals from `builtin` to `es*`OpenIssue

While investigating why eslint wouldn't pick up the globals, I noticed eslint does not use builtin like I previously assumed. I'd like to propose to copy any globals missing in either , , but present in to one of those respective environments. Afterwards, I'd copy back any potential globals from the categories to so that it ends up containing all globals from those categories. Alternatively, could be generated dynamically in , I think actually, that'd be my preference to avoid future inconsistency.

silverwind · 2mo ago

Recent fixes

View closed PRs →
chenjiahan
Add `__webpack_layer__` globalMergedPR

This adds the read-only global to the Rspack and Webpack environments. Both bundlers replace it at compile time with the current module layer or , so static analysis tools should recognize it. Related Links

chenjiahan · 2d ago
tiartrop
Add `GM_cookie` to Greasemonkey globalsMergedPR

Add GM_cookie

tiartrop · 1w ago
mightyaleksey
Add Flow globalsMergedPR

Hey, since the globals package is commonly used by linters (eslint, standard) to set up global variables for particular environment, I thought that it would be nice to add support for the flow type system. This PR creates environment and adds the following globals: events: https://flow.org/en/docs/react/events/ utility types: https://flow.org/en/docs/types/utilities/

mightyaleksey · 1w ago
Structured data for AI agents

Repository: sindresorhus/globals. Description: Global identifiers from different JavaScript environments Stars: 606, Forks: 134. Primary language: JavaScript. Languages: JavaScript (97.6%), HTML (1.9%), TypeScript (0.3%), Makefile (0.2%). License: MIT. Latest release: v17.11.0 (1w ago). Open PRs: 1, open issues: 8. Last activity: 2d ago. Community health: 85%. Top contributors: sindresorhus, fisker, github-actions[bot], nzakas, es128, silverwind, kevva, valorkin, johanbrook, mysticatea and others.

·@ofershap

Replace github.com with gitshow.dev