{"library":"globals","type":"library","category":null,"description":"`globals` is a comprehensive registry of global identifiers found across various JavaScript environments, including browsers, Node.js, Web Workers, and specific frameworks like Vue, Svelte, and Astro. Currently stable at version 17.5.0, the package maintains a frequent release cadence, often monthly, to incorporate updated global lists and introduce new environment definitions. Its core utility is a JSON file (`globals.json`) that maps global variable names to a boolean value, indicating whether the variable is considered writable (`true`) or read-only (`false`), aiding static analysis tools like ESLint. This differentiation is a key feature, allowing linters to flag incorrect assignments to built-in read-only globals. While ESLint 8 and earlier implicitly bundled this package, users of ESLint 9 and later are expected to include `globals` as a direct dependency.","language":"javascript","status":"active","version":"17.5.0","tags":["javascript","globals","global","identifiers","variables","vars","jshint","eslint","environments","typescript"],"last_verified":"Wed May 27","install":[{"cmd":"npm install globals","imports":["import globals from 'globals';","const globals = require('globals');","import globals from 'globals'; const browserGlobals = globals.browser;"]},{"cmd":"yarn add globals","imports":[]},{"cmd":"pnpm add globals","imports":[]}],"homepage":null,"github":"https://github.com/sindresorhus/globals","docs":null,"changelog":null,"pypi":null,"npm":"https://www.npmjs.com/package/globals","openapi_spec":null,"status_page":null,"smithery":null,"compatibility":{"summary":{"python_range":"18–22","success_rate":0,"avg_install_s":null,"avg_import_s":null,"wheel_type":null},"url":"https://checklist.day/v1/registry/globals/compatibility"}}