A JSON dataset of global identifiers from different JavaScript environments for static analysis tools.
Globals is a package that provides a JSON dataset of global identifiers from various JavaScript environments, such as browsers and Node.js. It helps static analysis tools like ESLint determine which variables are available in different contexts and whether they are read-only or overwritable, aiding in error detection and code quality.
JavaScript developers using static analysis or linting tools like ESLint, particularly those working on cross-environment projects or maintaining ESLint configurations.
It offers a standardized, machine-readable reference for global variables, ensuring consistency across tools and environments, and is directly integrated with ESLint for seamless configuration.
Global identifiers from different JavaScript environments
Open-Awesome is built by the community, for the community. Submit a project, suggest an awesome list, or help improve the catalog on GitHub.
Includes predefined globals for browsers, Node.js (with and without CommonJS), service workers, and more, as detailed in the JSON file and README examples.
Marks each global as true or false to indicate overwritability, helping static analysis tools detect incorrect behavior, as explained in the README usage section.
Provided as a plain JSON file, making it usable in any JavaScript environment without additional packages or setup, per the project philosophy.
Directly serves as the source for global variables in ESLint 8 and earlier, and can be integrated with ESLint 9 via direct dependency, as noted in the README.
The globals list is static and may not reflect the latest JavaScript environment changes without manual updates to the package, potentially leading to outdated information.
Difficult to extend for custom or niche environments; users must manually modify the JSON or create custom sets, as there's no built-in API for additions.
With ESLint 9 moving away from bundled usage, the package might see less active maintenance or relevance over time, as hinted in the README.