{"name":"@putout/operator-keyword","version":"5.2.0","type":"module","author":{"name":"coderaiser","email":"mnemonic.enemy@gmail.com","url":"https://github.com/coderaiser"},"description":"🐊Putout operator adds ability to check if whether Identifier is a keyword or not","homepage":"https://github.com/coderaiser/putout/tree/master/packages/operator-keyword#readme","main":"lib/keyword.js","release":false,"tag":false,"changelog":false,"repository":{"type":"git","url":"git+https://github.com/coderaiser/putout.git"},"scripts":{"test":"madrun test","test:dts":"madrun test:dts","watch:test":"madrun watch:test","lint":"madrun lint","fresh:lint":"madrun fresh:lint","lint:fresh":"madrun lint:fresh","fix:lint":"madrun fix:lint","coverage":"madrun coverage","report":"madrun report","wisdom":"madrun wisdom"},"keywords":["putout","putout-operator","operator","keyword"],"devDependencies":{"@putout/eslint-flat":"^4.0.0","@putout/test":"^15.0.0","check-dts":"^1.0.0","eslint":"^10.0.0","eslint-plugin-putout":"^31.0.0","madrun":"^13.0.0","montag":"^2.0.0","nodemon":"^3.0.1","putout":"*","superc8":"^12.0.0","supertape":"^13.0.0"},"license":"MIT","engines":{"node":">=22"},"publishConfig":{"access":"public"},"_id":"@putout/operator-keyword@5.2.0","gitHead":"874edabf59b2a7ef9ba795f0fc98732327e7621c","types":"./lib/keyword.d.ts","bugs":{"url":"https://github.com/coderaiser/putout/issues"},"_nodeVersion":"26.3.1","_npmVersion":"11.4.2","dist":{"integrity":"sha512-Vv4XILBbExSzMvII6L/3FlmHsH4Z4QaeyMVxz9KDQq9/lGiFlTDKkp5ipQI4xLXVYQOO1JLzC9/3PQ9DDTGf9w==","shasum":"4ccbafb2d551c1fc3f7b8dcc81670f082d4303e6","tarball":"http://registry-npm.ywwl.com/@putout/operator-keyword/download/@putout/operator-keyword-5.2.0.tgz","fileCount":5,"unpackedSize":5821,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEYCIQDk6cQWgp7by4zoe+pC/iqSe0sAMmpjnHaoqwiffn6GYQIhAIFAkuVdD66CR+6qdgNWcq6wfNSBT1AQ8AQw4Zw5wyYX"}],"size":2382,"noattachment":false,"key":"/@putout/operator-keyword/-/@putout/operator-keyword-5.2.0.tgz"},"_npmUser":{"name":"coderaiser","email":"mnemonic.enemy@gmail.com"},"directories":{},"maintainers":[{"name":"coderaiser","email":"mnemonic.enemy@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/operator-keyword_5.2.0_1782389134162_0.2766162230472875"},"_hasShrinkwrap":false,"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":1782389134320,"_cnpm_publish_time":1782389134320,"dist-tags":{"latest":"5.2.0"}}