{"library":"identifier-regex","type":"library","category":null,"description":"The `identifier-regex` package provides a precise regular expression function, `identifierRegex()`, designed to match valid JavaScript identifiers according to the ECMAScript specification. This includes proper handling of reserved words and specific syntax rules. The current stable version is 1.0.1, focusing on correctness and stability rather than rapid feature additions. Its primary differentiator is its strict adherence to JavaScript identifier rules, offering an `exact` option to control whether the regex matches the entire string or finds identifiers within a larger text. It explicitly excludes global properties like `Infinity` from being considered valid identifiers, aligning with common usage expectations. This library is ideal for parsers, linters, or any application needing to validate or extract JavaScript identifiers reliably.","language":"javascript","status":"active","version":"1.0.1","tags":["javascript","identifier","regex","regexp","regular","expression","keyword","word","reserved","typescript"],"last_verified":"Wed May 27","install":[{"cmd":"npm install identifier-regex","imports":["import identifierRegex from 'identifier-regex';","const myIdentifierRegex = identifierRegex();","import identifierRegex from 'identifier-regex';\nconst looseRegex = identifierRegex({ exact: false });"]},{"cmd":"yarn add identifier-regex","imports":[]},{"cmd":"pnpm add identifier-regex","imports":[]}],"homepage":null,"github":"https://github.com/sindresorhus/identifier-regex","docs":null,"changelog":null,"pypi":null,"npm":"https://www.npmjs.com/package/identifier-regex","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/identifier-regex/compatibility"}}