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

globals Build Status

Global identifiers from different JavaScript environments

Extracted from JSHint and ESLint and merged.

It's just a JSON file, so use it in whatever environment you like.

This module no longer accepts new environments. If you need it for ESLint, just create a plugin.

Install

$ npm install globals

Usage

const globals = require('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.


Get professional support for this package with a Tidelift subscription
Tidelift helps make open source sustainable for maintainers while giving companies
assurances about security, maintenance, and licensing for their dependencies.

Current Tags

  • 13.1.0                                ...           latest (a day ago)

82 Versions

  • 13.1.0                                ...           a day ago
  • 13.0.0                                ...           2 months ago
  • 12.4.0                                ...           3 months ago
  • 12.3.0                                ...           7 months ago
  • 12.2.0                                ...           7 months ago
  • 12.1.1                                ...           8 months ago
  • 12.1.0                                ...           9 months ago
  • 12.0.0                                ...           a year ago
  • 11.12.0                                ...           a year ago
  • 11.11.0                                ...           a year ago
  • 11.10.0                                ...           a year ago
  • 11.9.0                                ...           2 years ago
  • 11.8.0                                ...           2 years ago
  • 11.7.0                                ...           2 years ago
  • 11.6.0                                ...           2 years ago
  • 11.5.0                                ...           2 years ago
  • 11.4.0                                ...           2 years ago
  • 11.3.0                                ...           2 years ago
  • 11.2.0                                ...           2 years ago
  • 11.1.0                                ...           2 years ago
  • 11.0.1                                ...           3 years ago
  • 11.0.0                                ...           3 years ago
  • 10.4.0                                ...           3 years ago
  • 10.3.0                                ...           3 years ago
  • 10.2.0                                ...           3 years ago
  • 10.1.0                                ...           3 years ago
  • 10.0.0                                ...           3 years ago
  • 9.18.0                                ...           3 years ago
  • 9.17.0                                ...           3 years ago
  • 9.16.0                                ...           3 years ago
  • 9.15.0                                ...           3 years ago
  • 9.14.0                                ...           4 years ago
  • 9.13.0                                ...           4 years ago
  • 9.12.0                                ...           4 years ago
  • 9.11.0                                ...           4 years ago
  • 9.10.0                                ...           4 years ago
  • 9.9.0                                ...           4 years ago
  • 9.8.0                                ...           4 years ago
  • 9.7.0                                ...           4 years ago
  • 9.6.0                                ...           4 years ago
  • 9.5.0                                ...           4 years ago
  • 9.4.0                                ...           4 years ago
  • 9.3.0                                ...           4 years ago
  • 9.2.0                                ...           4 years ago
  • 9.1.0                                ...           4 years ago
  • 9.0.0                                ...           4 years ago
  • 8.18.0                                ...           4 years ago
  • 8.17.0                                ...           4 years ago
  • 8.16.0                                ...           4 years ago
  • 8.15.0                                ...           4 years ago
  • 8.14.0                                ...           5 years ago
  • 8.13.0                                ...           5 years ago
  • 8.12.1                                ...           5 years ago
  • 8.12.0                                ...           5 years ago
  • 8.11.0                                ...           5 years ago
  • 8.10.0                                ...           5 years ago
  • 8.9.0                                ...           5 years ago
  • 8.8.0                                ...           5 years ago
  • 8.7.0                                ...           5 years ago
  • 8.6.0                                ...           5 years ago
  • 8.5.0                                ...           5 years ago
  • 8.4.0                                ...           5 years ago
  • 8.3.0                                ...           5 years ago
  • 8.2.0                                ...           5 years ago
  • 8.1.0                                ...           5 years ago
  • 8.0.0                                ...           5 years ago
  • 7.1.0                                ...           5 years ago
  • 7.0.0                                ...           5 years ago
  • 6.4.1                                ...           5 years ago
  • 6.4.0                                ...           5 years ago
  • 6.3.0                                ...           5 years ago
  • 6.2.0                                ...           5 years ago
  • 6.1.0                                ...           5 years ago
  • 6.0.0                                ...           5 years ago
  • 5.1.0                                ...           5 years ago
  • 5.0.0                                ...           5 years ago
  • 4.0.0                                ...           5 years ago
  • 3.0.0                                ...           5 years ago
  • 2.0.0                                ...           6 years ago
  • 1.0.0                                ...           6 years ago
  • 0.1.1                                ...           6 years ago
  • 0.1.0                                ...           6 years ago
Downloads
Today 11,834
This Week 357,882
This Month 357,882
Last Day 25,141
Last Week 369,648
Last Month 1,451,493
Dependencies (1)
Dev Dependencies (3)
Dependents (231)

Copyright 2014 - 2016 © taobao.org |