{"library":"is-reference","type":"library","category":null,"description":"is-reference is a focused utility designed to accurately determine whether a given JavaScript Abstract Syntax Tree (AST) node, specifically an `Identifier`, constitutes a 'reference' in the context of scope analysis. This is crucial for tools like bundlers, minifiers, and linters that need to differentiate between identifiers that refer to a variable binding (e.g., `console.log(foo)`) and those that are property names (e.g., `obj.foo`). The package is currently at version 3.0.3 and appears to follow an infrequent release cadence, driven by the needs of projects like Rollup. Its primary differentiator is its precise definition of a 'reference' within the ESTree specification, distinguishing it from simply being an `Identifier` node. It ships with TypeScript types, ensuring type-safe usage in modern JavaScript environments.","language":"javascript","status":"active","version":"3.0.3","tags":["javascript","ast","estree","acorn","typescript"],"last_verified":"Wed May 27","install":[{"cmd":"npm install is-reference","imports":["import is_reference from 'is-reference';","const is_reference = require('is-reference');"]},{"cmd":"yarn add is-reference","imports":[]},{"cmd":"pnpm add is-reference","imports":[]}],"homepage":null,"github":"https://github.com/Rich-Harris/is-reference","docs":null,"changelog":null,"pypi":null,"npm":"https://www.npmjs.com/package/is-reference","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/is-reference/compatibility"}}