{"name":"@putout/operator-keyword","version":"4.2.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.2.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":"85432f887dad26ebdd7cbc818c4958b3c3ae2f08","tarball":"http://registry-npm.ywwl.com/@putout/operator-keyword/download/@putout/operator-keyword-4.2.0.tgz","fileCount":4,"integrity":"sha512-C1ZzNzuKkkXX8FGJNguYC6kccDRTymHGPNN68TDD825a6N9Cql5iIpAK8GbePDpCNph8TPCVQa42vpG5eCee8A==","signatures":[{"sig":"MEYCIQCNLi5OxNUDjLfJ/4ma0/1uSIPFI2SVQF7Rz+bTtB/e5QIhAKoWxWNjQFCR+O0F8MgVheX+FFhkaE5l4vEJFKal7Tti","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":4857,"size":2087,"noattachment":false,"key":"/@putout/operator-keyword/-/@putout/operator-keyword-4.2.0.tgz"},"main":"lib/keyword.js","type":"module","engines":{"node":">=22"},"gitHead":"c7e523480c30d6d7eefdf0e4e52b4c047933cd1a","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.6.1","publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"c8":"^10.0.0","eslint":"^10.0.0","madrun":"^12.0.0","montag":"^1.2.1","putout":"*","nodemon":"^3.0.1","supertape":"^12.0.0","@putout/test":"^15.0.0","eslint-plugin-n":"^17.0.0","@putout/eslint-flat":"^4.0.0","eslint-plugin-putout":"^30.0.0"},"_npmOperationalInternal":{"tmp":"tmp/operator-keyword_4.2.0_1770813637094_0.5436734220023882","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":1770813637228,"_cnpm_publish_time":1770813637228,"dist-tags":{"latest":"5.2.0"}}