{"name":"@putout/operator-keyword","version":"4.0.0","keywords":["putout","putout-operator","operator","keyword"],"author":{"url":"https://github.com/coderaiser","name":"coderaiser","email":"mnemonic.enemy@gmail.com"},"license":"MIT","_id":"@putout/operator-keyword@4.0.0","maintainers":[{"name":"coderaiser","email":"mnemonic.enemy@gmail.com"}],"homepage":"https://github.com/coderaiser/putout/tree/master/packages/operator-keyword#readme","bugs":{"url":"https://github.com/coderaiser/putout/issues"},"tag":false,"dist":{"shasum":"ed14054abc537843e619841999ce06783d9af53a","tarball":"http://registry-npm.ywwl.com/@putout/operator-keyword/download/@putout/operator-keyword-4.0.0.tgz","fileCount":4,"integrity":"sha512-DaOBx3ViduWUzpLkXLqz90naordm4xwhZudhJ9pK/mdDE3nntpKe5j4x9+L0R77uC5nwdQHCiGCgdUbQAXkU8Q==","signatures":[{"sig":"MEQCIDmBpsJL6PpsRUJpVatGRI4lYegtLoQlloSm2+l5jc7QAiANI7KpyaVqbUyC83C7lRB1FNJ/YfpUBEHEgpB05iEHcQ==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":4830,"size":2081,"noattachment":false,"key":"/@putout/operator-keyword/-/@putout/operator-keyword-4.0.0.tgz"},"main":"lib/keyword.js","type":"module","engines":{"node":">=22"},"gitHead":"1fe4d0fbb7bdafeeb87f8f24c63464d0df7ae1be","release":false,"scripts":{"lint":"madrun lint","test":"madrun test","report":"madrun report","coverage":"madrun coverage","fix:lint":"madrun fix:lint","fresh:lint":"madrun fresh:lint","lint:fresh":"madrun lint:fresh","watch:test":"madrun watch:test"},"_npmUser":{"name":"coderaiser","email":"mnemonic.enemy@gmail.com"},"changelog":false,"repository":{"url":"git+https://github.com/coderaiser/putout.git","type":"git"},"_npmVersion":"11.4.2","description":"🐊Putout operator adds ability to check if whether Identifier is a keyword or not","directories":{},"_nodeVersion":"25.2.1","publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"c8":"^10.0.0","eslint":"^10.0.0-alpha.0","madrun":"^12.0.0","montag":"^1.2.1","putout":"*","nodemon":"^3.0.1","supertape":"^11.0.3","@putout/test":"^15.0.0","eslint-plugin-n":"^17.0.0","@putout/eslint-flat":"^3.0.0","eslint-plugin-putout":"^29.0.0"},"_npmOperationalInternal":{"tmp":"tmp/operator-keyword_4.0.0_1767292526634_0.8920899245489027","host":"s3://npm-registry-packages-npm-production"},"readme":"# @putout/operator-keyword [![NPM version][NPMIMGURL]][NPMURL]\n\n[NPMIMGURL]: https://img.shields.io/npm/v/@putout/operator-keyword.svg?style=flat&longCache=true\n[NPMURL]: https://npmjs.org/package/@putout/operator-keyword \"npm\"\n\n🐊[**Putout**](https://github.com/coderaiser/putout) operator adds ability to check whether `Identifier` is a `keyword` or not.\n\n## Install\n\n```\nnpm i putout @putout/operator-keyword\n```\n\n## API\n\n```js\nimport {operator} from 'putout';\n\nconst {\n    isKeyword,\n    isTSKeyword,\n    isDeclarationKeyword,\n    isModuleDeclarationKeyword,\n    isConditionKeyword,\n} = operator;\n\nisKeyword('if');\n// returns\ntrue;\n\nisKeyword('abc');\n// returns\nfalse;\n\nisDeclarationKeyword('const');\n// returns\ntrue;\n\nisModuleDeclarationKeyword('import');\n// returns\ntrue;\n\nisConditionKeyword('if');\n// returns\ntrue;\n\nisStatementKeyword('for');\n// returns\ntrue;\n\nisTSKeyword('implements');\n// returns\ntrue;\n```\n\n### `isLegacyKeyword`\n\n> A previous version of `import attributes` used the `assert` keyword instead of with. The assertion feature is now non-standard.\n>\n> (c) [MDN](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Statements/import/with)\n\n```js\nimport {operator} from 'putout';\n\nconst {isLegacyKeyword} = operator;\n\nisLegacyKeyword('assert');\n// returns\ntrue;\n```\n\n## License\n\nMIT\n","publish_time":1767292526829,"_cnpm_publish_time":1767292526829,"dist-tags":{"latest":"5.2.0"}}