Skip to content
Global identifiers from different JavaScript environments
JavaScript Makefile
Latest commit 158ee4b May 22, 2016 @sindresorhus 9.7.0
Failed to load latest commit information.
.editorconfig tweaks Aug 14, 2014
.gitattributes init Dec 14, 2013
.gitignore tweaks Aug 14, 2014
.jshintrc tweaks Aug 14, 2014
.travis.yml Update .travis.yml Feb 8, 2015
Makefile Add Makefile for standardized releases Dec 10, 2014
globals.json Add MediaStream and RTCPeerConnection (#90) May 21, 2016
index.js tweaks Aug 14, 2014
license tweaks Aug 14, 2014
package.json 9.7.0 May 22, 2016 add note about not accepting new environments Mar 28, 2016
test.js tweaks Aug 14, 2014

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.


$ npm install --save globals


var globals = require('globals');

    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.


MIT © Sindre Sorhus

Something went wrong with that request. Please try again.