{"_id":"reserved-identifiers","_rev":"3-0d6f64aaf1aba38670567b488a2412d1","name":"reserved-identifiers","dist-tags":{"latest":"1.2.0"},"versions":{"1.0.0":{"name":"reserved-identifiers","version":"1.0.0","keywords":["reserved","identifiers","keywords","words","restricted","javascript","ecmascript","identifier","variable","function","property","set"],"author":{"url":"https://sindresorhus.com","name":"Sindre Sorhus","email":"sindresorhus@gmail.com"},"license":"MIT","_id":"reserved-identifiers@1.0.0","maintainers":[{"name":"sindresorhus","email":"sindresorhus@gmail.com"}],"homepage":"https://github.com/sindresorhus/reserved-identifiers#readme","bugs":{"url":"https://github.com/sindresorhus/reserved-identifiers/issues"},"dist":{"shasum":"a4878ea2b5130ec2bf5aba40074edcb9704d2623","tarball":"https://registry.npmjs.org/reserved-identifiers/-/reserved-identifiers-1.0.0.tgz","fileCount":5,"integrity":"sha512-h0bP2Katmvf3hv4Z3WtDl4+6xt/OglQ2Xa6TnhZ/Rm9/7IH1crXQqMwD4J2ngKBonVv+fB55zfGgNDAmsevLVQ==","signatures":[{"sig":"MEYCIQDSoE1oq6KJUX+TiN57RJtvI5jkoRCMhh9D4BhMvhCXDAIhAPjROwimxPnAyJExDy4d33Yi5DOFt7qjzkm9MT9O2cSi","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":5095},"type":"module","types":"./index.d.ts","engines":{"node":">=18"},"exports":{"types":"./index.d.ts","default":"./index.js"},"funding":"https://github.com/sponsors/sindresorhus","gitHead":"632affa09afcafc8f0db683e4fb1b76cb1d6a721","scripts":{"test":"xo && ava"},"_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"repository":{"url":"git+https://github.com/sindresorhus/reserved-identifiers.git","type":"git"},"_npmVersion":"10.6.0","description":"Provides a list of reserved identifiers for JavaScript","directories":{},"sideEffects":false,"_nodeVersion":"20.12.2","_hasShrinkwrap":false,"devDependencies":{"xo":"^0.58.0","ava":"^6.1.2"},"_npmOperationalInternal":{"tmp":"tmp/reserved-identifiers_1.0.0_1714932394344_0.9120671774349616","host":"s3://npm-registry-packages"}},"1.1.0":{"name":"reserved-identifiers","version":"1.1.0","keywords":["reserved","identifiers","keywords","words","restricted","javascript","ecmascript","identifier","variable","function","property","set"],"author":{"url":"https://sindresorhus.com","name":"Sindre Sorhus","email":"sindresorhus@gmail.com"},"license":"MIT","_id":"reserved-identifiers@1.1.0","maintainers":[{"name":"sindresorhus","email":"sindresorhus@gmail.com"}],"homepage":"https://github.com/sindresorhus/reserved-identifiers#readme","bugs":{"url":"https://github.com/sindresorhus/reserved-identifiers/issues"},"dist":{"shasum":"399c46870e82715147d3542e3066da2484de6ad2","tarball":"https://registry.npmjs.org/reserved-identifiers/-/reserved-identifiers-1.1.0.tgz","fileCount":5,"integrity":"sha512-203KzrGTMKVIMmWpNvGpd9DURZDYeC4pDAU9kx2Y4sr+LC8r5noya8Nxptif8kClif/F4VDNsqhulZ/TosEP1Q==","signatures":[{"sig":"MEUCIEC8SC6fB6IMsXqo9NHQV5MXwQrIokS3ttmOtLNpPgkPAiEA2/LexJQ4Wl1B1ble/cWS+0DmDLSCz+Fu0fHJHPhgQ+4=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":6587},"type":"module","types":"./index.d.ts","engines":{"node":">=18"},"exports":{"types":"./index.d.ts","default":"./index.js"},"funding":"https://github.com/sponsors/sindresorhus","gitHead":"924367c94ba2721bc1b64a92a1c97544af81f453","scripts":{"test":"xo && ava"},"_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"repository":{"url":"git+https://github.com/sindresorhus/reserved-identifiers.git","type":"git"},"_npmVersion":"11.6.1","description":"Provides a list of reserved identifiers for JavaScript","directories":{},"sideEffects":false,"_nodeVersion":"24.9.0","_hasShrinkwrap":false,"devDependencies":{"xo":"^0.58.0","ava":"^6.1.2"},"_npmOperationalInternal":{"tmp":"tmp/reserved-identifiers_1.1.0_1761284899340_0.5603543589701698","host":"s3://npm-registry-packages-npm-production"}},"1.2.0":{"name":"reserved-identifiers","version":"1.2.0","description":"Provides a list of reserved identifiers for JavaScript","license":"MIT","repository":{"type":"git","url":"git+https://github.com/sindresorhus/reserved-identifiers.git"},"funding":"https://github.com/sponsors/sindresorhus","author":{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"https://sindresorhus.com"},"type":"module","exports":{"types":"./index.d.ts","default":"./index.js"},"sideEffects":false,"engines":{"node":">=18"},"scripts":{"test":"xo && ava"},"keywords":["reserved","identifiers","keywords","words","restricted","javascript","ecmascript","identifier","variable","function","property","set"],"devDependencies":{"ava":"^6.1.2","xo":"^0.58.0"},"gitHead":"e874b2c6dc40a12b3cb2683d3bf91520e98bc08f","types":"./index.d.ts","_id":"reserved-identifiers@1.2.0","bugs":{"url":"https://github.com/sindresorhus/reserved-identifiers/issues"},"homepage":"https://github.com/sindresorhus/reserved-identifiers#readme","_nodeVersion":"24.9.0","_npmVersion":"11.6.1","dist":{"integrity":"sha512-yE7KUfFvaBFzGPs5H3Ops1RevfUEsDc5Iz65rOwWg4lE8HJSYtle77uul3+573457oHvBKuHYDl/xqUkKpEEdw==","shasum":"d2982cd698e317dd3dced1ee1c52412dbd64fc64","tarball":"https://registry.npmjs.org/reserved-identifiers/-/reserved-identifiers-1.2.0.tgz","fileCount":5,"unpackedSize":6620,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEQCICt6kLa8ITjZXT3kAUjo9vOg/1Dh+vL4sOcMi6JXNcMtAiB55UOsInDSP4xbxhKwis2TAgk5gO1OyCuKXTSctBKeug=="}]},"_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"directories":{},"maintainers":[{"name":"sindresorhus","email":"sindresorhus@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/reserved-identifiers_1.2.0_1761368644123_0.5278962491178649"},"_hasShrinkwrap":false}},"time":{"created":"2024-05-05T18:06:34.342Z","modified":"2025-10-25T05:04:04.547Z","1.0.0":"2024-05-05T18:06:34.535Z","1.1.0":"2025-10-24T05:48:19.524Z","1.2.0":"2025-10-25T05:04:04.320Z"},"bugs":{"url":"https://github.com/sindresorhus/reserved-identifiers/issues"},"author":{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"https://sindresorhus.com"},"license":"MIT","homepage":"https://github.com/sindresorhus/reserved-identifiers#readme","keywords":["reserved","identifiers","keywords","words","restricted","javascript","ecmascript","identifier","variable","function","property","set"],"repository":{"type":"git","url":"git+https://github.com/sindresorhus/reserved-identifiers.git"},"description":"Provides a list of reserved identifiers for JavaScript","maintainers":[{"name":"sindresorhus","email":"sindresorhus@gmail.com"}],"readme":"# reserved-identifiers\n\n> Provides a list of [reserved identifiers](https://262.ecma-international.org/14.0/#sec-keywords-and-reserved-words) for JavaScript\n\nIt assumes the latest JavaScript version (ES2023) and module context. Supporting older JavaScript versions is a non-goal.\n\n## Install\n\n```sh\nnpm install reserved-identifiers\n```\n\n## Usage\n\n```js\nimport reservedIdentifiers from 'reserved-identifiers';\n\nconst identifiers = reservedIdentifiers();\nconst isReserved = identifier => identifiers.has(identifier);\n\nconsole.log(isReserved('await'));\n//=> true\n```\n\n## API\n\n### reservedIdentifiers(options?)\n\nReturns a `Set` with the identifiers.\n\n#### options\n\nType: `object`\n\n##### includeGlobalProperties\n\nType: `boolean`\\\nDefault: `false`\n\nInclude the [global properties](https://tc39.es/ecma262/#sec-value-properties-of-the-global-object) `globalThis`, `Infinity`, `NaN`, and `undefined`. Although not officially reserved, they should typically [not be used as identifiers](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/undefined#sect1).\n\n### typeScriptReservedTypes()\n\nReturns a `Set` with TypeScript's built-in types that are reserved and cannot be used for type names (interfaces, type aliases, enums, classes, type parameters).\n\n```js\nimport {typeScriptReservedTypes} from 'reserved-identifiers';\n\nconst types = typeScriptReservedTypes();\n\nconsole.log(types.has('any'));\n//=> true\n\nconsole.log(types.has('unknown'));\n//=> true\n```\n\n## Related\n\n- [is-identifier](https://github.com/sindresorhus/is-identifier) - Check if a string is a valid JavaScript identifier\n","readmeFilename":"readme.md"}