{"name":"globals","version":"16.0.0","description":"Global identifiers from different JavaScript environments","license":"MIT","repository":{"type":"git","url":"git+https://github.com/sindresorhus/globals.git"},"funding":"https://github.com/sponsors/sindresorhus","author":{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"https://sindresorhus.com"},"sideEffects":false,"engines":{"node":">=18"},"scripts":{"test":"npm run build && xo && ava && tsd","prepare":"npm run build","update":"node scripts/update.mjs","update:browser":"node scripts/update.mjs --environment=browser","update:builtin":"node scripts/update.mjs --environment=builtin","update:nodeBuiltin":"node scripts/update.mjs --environment=nodeBuiltin","update:worker":"node scripts/update.mjs --environment=worker","update:serviceworker":"node scripts/update.mjs --environment=serviceworker","update:shelljs":"node scripts/update.mjs --environment=shelljs","update:jest":"node scripts/update.mjs --environment=jest","update:vitest":"node scripts/update.mjs --environment=vitest","build":"run-s build:data build:types","build:data":"node scripts/generate-data.mjs","build:types":"node scripts/generate-types.mjs"},"keywords":["globals","global","identifiers","variables","vars","jshint","eslint","environments"],"devDependencies":{"@vitest/eslint-plugin":"^1.1.30","ava":"^6.1.3","cheerio":"^1.0.0-rc.12","eslint-plugin-jest":"^28.8.3","execa":"^9.4.0","get-port":"^7.1.0","npm-run-all2":"^6.2.3","outdent":"^0.8.0","puppeteer":"^23.4.1","shelljs":"^0.8.5","tsd":"^0.31.2","type-fest":"^4.26.1","xo":"^0.59.3"},"xo":{"rules":{"unicorn/prefer-module":"off"},"overrides":[{"files":["data/*.mjs"],"rules":{"import/no-anonymous-default-export":"off","camelcase":"off","unicorn/filename-case":["error",{"cases":{"camelCase":true,"kebabCase":true}}]}},{"files":["scripts/*.mjs"],"rules":{"n/no-unsupported-features/node-builtins":"off"}}]},"tsd":{"compilerOptions":{"resolveJsonModule":true}},"_id":"globals@16.0.0","gitHead":"efb324782720e6f97d13651fa73ae32ef4ca01b4","types":"./index.d.ts","bugs":{"url":"https://github.com/sindresorhus/globals/issues"},"homepage":"https://github.com/sindresorhus/globals#readme","_nodeVersion":"23.6.1","_npmVersion":"10.9.2","dist":{"integrity":"sha512-iInW14XItCXET01CQFqudPOWP2jYMl7T+QRQT+UNcR/iQncN/F0UNpgd76iFkBPgNQb4+X3LV9tLJYzwh+Gl3A==","shasum":"3d7684652c5c4fbd086ec82f9448214da49382d8","tarball":"http://registry-npm.ywwl.com/globals/download/globals-16.0.0.tgz","fileCount":6,"unpackedSize":187424,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEUCIQDKD9T3rt1FcQ/4BCIBZKQaypyrg9pHHAIveI9lr3q69QIgX77asxPv0Gjyp5ZOU+giy1KSy0bDSiQAIk8ebWH0ovI="}],"size":25804,"noattachment":false,"key":"/globals/-/globals-16.0.0.tgz"},"_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/globals_16.0.0_1740055745055_0.6307822720058778"},"_hasShrinkwrap":false,"readme":"# globals\n\n> Global identifiers from different JavaScript environments\n\nIt's just a [JSON file](globals.json), so you can use it in any environment.\n\nThis package is used by ESLint 8 and earlier. For ESLint 9 and later, you should depend on this package directly in [your ESLint config](https://eslint.org/docs/latest/use/configure/language-options#predefined-global-variables).\n\n## Install\n\n```sh\nnpm install globals\n```\n\n## Usage\n\n```js\nimport globals from 'globals';\n\nconsole.log(globals.browser);\n/*\n{\n\taddEventListener: false,\n\tapplicationCache: false,\n\tArrayBuffer: false,\n\tatob: false,\n\t…\n}\n*/\n```\n\nEach 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.\n\nFor Node.js this package provides two sets of globals:\n\n- `globals.nodeBuiltin`: Globals available to all code running in Node.js.\n\tThese will usually be available as properties on the `globalThis` object and include `process`, `Buffer`, but not CommonJS arguments like `require`.\n\tSee: https://nodejs.org/api/globals.html\n- `globals.node`: A combination of the globals from `nodeBuiltin` plus all CommonJS arguments (\"CommonJS module scope\").\n\tSee: https://nodejs.org/api/modules.html#modules_the_module_scope\n\nWhen analyzing code that is known to run outside of a CommonJS wrapper, for example, JavaScript modules, `nodeBuiltin` can find accidental CommonJS references.\n","publish_time":1740055745239,"maintainers":[{"name":"byk","email":"ben@byk.im"},{"name":"nzakas","email":"nicholas@nczconsulting.com"},{"name":"lo1tuma","email":"schreck.mathias@gmail.com"},{"name":"sindresorhus","email":"sindresorhus@gmail.com"}],"_cnpm_publish_time":1740055745239,"dist-tags":{"latest":"17.14.0"}}