globals
Global identifiers from different JavaScript environments
Last updated 3 years ago by sindresorhus .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ npm install globals 
SYNC missed versions from official npm registry.

globals

Global identifiers from different JavaScript environments

It's just a JSON file, so you can use it in any environment.

This package is used by ESLint 8 and earlier. For ESLint 9 and later, you should depend on this package directly in your ESLint config.

Install

npm install globals

Usage

import globals from 'globals';

console.log(globals.browser);
/*
{
	addEventListener: false,
	applicationCache: false,
	ArrayBuffer: false,
	atob: false,
	…
}
*/

Each global is given a value of true or false. A value of true indicates that the variable may be overwritten. A value of false indicates that the variable should be considered read-only. This information is used by static analysis tools to flag incorrect behavior. We assume all variables should be false unless we hear otherwise.

For Node.js this package provides two sets of globals:

When analyzing code that is known to run outside of a CommonJS wrapper, for example, JavaScript modules, nodeBuiltin can find accidental CommonJS references.

Current Tags

  • 15.11.0                                ...           latest (a month ago)

119 Versions

  • 15.11.0                                ...           a month ago
  • 15.10.0                                ...           a month ago
  • 15.9.0                                ...           3 months ago
  • 15.8.0                                ...           4 months ago
  • 15.7.0                                ...           5 months ago
  • 15.6.0                                ...           5 months ago
  • 15.5.0                                ...           5 months ago
  • 15.4.0                                ...           5 months ago
  • 15.3.0                                ...           6 months ago
  • 15.2.0                                ...           6 months ago
  • 15.1.0                                ...           7 months ago
  • 15.0.0                                ...           8 months ago
  • 14.0.0                                ...           9 months ago
  • 13.24.0                                ...           a year ago
  • 13.23.0                                ...           a year ago
  • 13.22.0                                ...           a year ago
  • 13.21.0                                ...           a year ago
  • 13.20.0                                ...           2 years ago
  • 13.19.0                                ...           2 years ago
  • 13.18.0                                ...           2 years ago
  • 13.17.0                                ...           2 years ago
  • 13.16.0                                ...           2 years ago
  • 13.15.0                                ...           3 years ago
  • 13.14.0                                ...           3 years ago
  • 13.13.0                                ...           3 years ago
  • 13.12.1                                ...           3 years ago
  • 13.12.0                                ...           3 years ago
  • 13.11.0                                ...           3 years ago
  • 13.10.0                                ...           3 years ago
  • 13.9.0                                ...           3 years ago
  • 13.8.0                                ...           4 years ago
  • 13.7.0                                ...           4 years ago
  • 13.6.0                                ...           4 years ago
  • 13.5.0                                ...           4 years ago
  • 13.4.0                                ...           4 years ago
  • 13.3.0                                ...           4 years ago
  • 13.2.0                                ...           4 years ago
  • 13.1.0                                ...           4 years ago
  • 13.0.0                                ...           5 years ago
  • 12.4.0                                ...           5 years ago
  • 12.3.0                                ...           5 years ago
  • 12.2.0                                ...           5 years ago
  • 12.1.1                                ...           5 years ago
  • 12.1.0                                ...           5 years ago
  • 12.0.0                                ...           5 years ago
  • 11.12.0                                ...           6 years ago
  • 11.11.0                                ...           6 years ago
  • 11.10.0                                ...           6 years ago
  • 11.9.0                                ...           6 years ago
  • 11.8.0                                ...           6 years ago
  • 11.7.0                                ...           6 years ago
  • 11.6.0                                ...           6 years ago
  • 11.5.0                                ...           7 years ago
  • 11.4.0                                ...           7 years ago
  • 11.3.0                                ...           7 years ago
  • 11.2.0                                ...           7 years ago
  • 11.1.0                                ...           7 years ago
  • 11.0.1                                ...           7 years ago
  • 11.0.0                                ...           7 years ago
  • 10.4.0                                ...           7 years ago
  • 10.3.0                                ...           7 years ago
  • 10.2.0                                ...           7 years ago
  • 10.1.0                                ...           7 years ago
  • 10.0.0                                ...           7 years ago
  • 9.18.0                                ...           7 years ago
  • 9.17.0                                ...           8 years ago
  • 9.16.0                                ...           8 years ago
  • 9.15.0                                ...           8 years ago
  • 9.14.0                                ...           8 years ago
  • 9.13.0                                ...           8 years ago
  • 9.12.0                                ...           8 years ago
  • 9.11.0                                ...           8 years ago
  • 9.10.0                                ...           8 years ago
  • 9.9.0                                ...           8 years ago
  • 9.8.0                                ...           8 years ago
  • 9.7.0                                ...           8 years ago
  • 9.6.0                                ...           9 years ago
  • 9.5.0                                ...           9 years ago
  • 9.4.0                                ...           9 years ago
  • 9.3.0                                ...           9 years ago
  • 9.2.0                                ...           9 years ago
  • 9.1.0                                ...           9 years ago
  • 9.0.0                                ...           9 years ago
  • 8.18.0                                ...           9 years ago
  • 8.17.0                                ...           9 years ago
  • 8.16.0                                ...           9 years ago
  • 8.15.0                                ...           9 years ago
  • 8.14.0                                ...           9 years ago
  • 8.13.0                                ...           9 years ago
  • 8.12.1                                ...           9 years ago
  • 8.12.0                                ...           9 years ago
  • 8.11.0                                ...           9 years ago
  • 8.10.0                                ...           9 years ago
  • 8.9.0                                ...           9 years ago
  • 8.8.0                                ...           9 years ago
  • 8.7.0                                ...           9 years ago
  • 8.6.0                                ...           9 years ago
  • 8.5.0                                ...           9 years ago
  • 8.4.0                                ...           9 years ago
  • 8.3.0                                ...           9 years ago
  • 8.2.0                                ...           9 years ago
  • 8.1.0                                ...           9 years ago
  • 8.0.0                                ...           9 years ago
  • 7.1.0                                ...           9 years ago
  • 7.0.0                                ...           9 years ago
  • 6.4.1                                ...           10 years ago
  • 6.4.0                                ...           10 years ago
  • 6.3.0                                ...           10 years ago
  • 6.2.0                                ...           10 years ago
  • 6.1.0                                ...           10 years ago
  • 6.0.0                                ...           10 years ago
  • 5.1.0                                ...           10 years ago
  • 5.0.0                                ...           10 years ago
  • 4.0.0                                ...           10 years ago
  • 3.0.0                                ...           10 years ago
  • 2.0.0                                ...           10 years ago
  • 1.0.0                                ...           10 years ago
  • 0.1.1                                ...           11 years ago
  • 0.1.0                                ...           11 years ago

© 2010 - cnpmjs.org x YWFE | Home | YWFE