globals
Global identifiers from different JavaScript environments
Last updated 15 days 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.


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

  • 12.1.1                                ...           latest (15 days ago)

77 Versions

  • 12.1.1                                ...           15 days ago
  • 12.1.0                                ...           a month ago
  • 12.0.0                                ...           3 months ago
  • 11.12.0                                ...           6 months ago
  • 11.11.0                                ...           8 months ago
  • 11.10.0                                ...           9 months ago
  • 11.9.0                                ...           a year ago
  • 11.8.0                                ...           a year ago
  • 11.7.0                                ...           a year ago
  • 11.6.0                                ...           a year ago
  • 11.5.0                                ...           a year 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                                ...           2 years ago
  • 11.0.0                                ...           2 years ago
  • 10.4.0                                ...           2 years ago
  • 10.3.0                                ...           2 years ago
  • 10.2.0                                ...           2 years ago
  • 10.1.0                                ...           2 years ago
  • 10.0.0                                ...           2 years ago
  • 9.18.0                                ...           2 years ago
  • 9.17.0                                ...           3 years ago
  • 9.16.0                                ...           3 years ago
  • 9.15.0                                ...           3 years ago
  • 9.14.0                                ...           3 years ago
  • 9.13.0                                ...           3 years ago
  • 9.12.0                                ...           3 years ago
  • 9.11.0                                ...           3 years ago
  • 9.10.0                                ...           3 years ago
  • 9.9.0                                ...           3 years ago
  • 9.8.0                                ...           3 years ago
  • 9.7.0                                ...           3 years ago
  • 9.6.0                                ...           3 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                                ...           4 years ago
  • 8.13.0                                ...           4 years ago
  • 8.12.1                                ...           4 years ago
  • 8.12.0                                ...           4 years ago
  • 8.11.0                                ...           4 years ago
  • 8.10.0                                ...           4 years ago
  • 8.9.0                                ...           4 years ago
  • 8.8.0                                ...           4 years ago
  • 8.7.0                                ...           4 years ago
  • 8.6.0                                ...           4 years ago
  • 8.5.0                                ...           4 years ago
  • 8.4.0                                ...           4 years ago
  • 8.3.0                                ...           4 years ago
  • 8.2.0                                ...           4 years ago
  • 8.1.0                                ...           4 years ago
  • 8.0.0                                ...           4 years ago
  • 7.1.0                                ...           4 years ago
  • 7.0.0                                ...           4 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                                ...           5 years ago
  • 1.0.0                                ...           5 years ago
  • 0.1.1                                ...           5 years ago
  • 0.1.0                                ...           6 years ago
Downloads
Today 1,609
This Week 83,474
This Month 570,359
Last Day 41,787
Last Week 219,236
Last Month 889,628
Dependencies (1)
Dev Dependencies (3)
Dependents (173)

Copyright 2014 - 2016 © taobao.org |