{"name":"@putout/plugin-extract-keywords-from-variables","version":"1.3.0","keywords":["putout","putout-plugin","putout-plugin-extract","plugin","extract","keywords"],"author":{"url":"https://github.com/coderaiser","name":"coderaiser","email":"mnemonic.enemy@gmail.com"},"license":"MIT","_id":"@putout/plugin-extract-keywords-from-variables@1.3.0","homepage":"https://github.com/coderaiser/putout/tree/master/packages/plugin-extract-keywords-from-variables#readme","bugs":{"url":"https://github.com/coderaiser/putout/issues"},"tag":false,"dist":{"shasum":"ac3ae149b124b324fd4383a700f720a2de2c548f","tarball":"http://registry-npm.ywwl.com/@putout/plugin-extract-keywords-from-variables/download/@putout/plugin-extract-keywords-from-variables-1.3.0.tgz","fileCount":4,"integrity":"sha512-Oc8TOLCti2WedFBpxGxZgHAbL/oklktRZ5j4PNBCWZg0h1L+QT1eM5khf/osZlU4lsICOoIeqbUlBJXeIHOznQ==","signatures":[{"sig":"MEUCIAOzCPtOIUv4m6Kdbhc75iXn97OZh4FhppbOxCJYMizDAiEAhRwew6tmtr9YE6xcbA4Bucg9lKTRbEoPEVMjO60wXtY=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":6711,"size":2679,"noattachment":false,"key":"/@putout/plugin-extract-keywords-from-variables/-/@putout/plugin-extract-keywords-from-variables-1.3.0.tgz"},"main":"lib/extract-keywords-from-variables.js","type":"commonjs","engines":{"node":">=18"},"gitHead":"d10a505096855e68dcecf378661ee3737cad3823","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":"10.9.0","description":"🐊Putout plugin adds ability to extract keywords from variables","directories":{},"_nodeVersion":"22.13.0","dependencies":{},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"c8":"^10.0.0","eslint":"^9.0.0","madrun":"^10.0.0","@putout/test":"^11.0.0","eslint-plugin-n":"^17.0.0","eslint-plugin-putout":"^23.0.0"},"peerDependencies":{"putout":">=37"},"_npmOperationalInternal":{"tmp":"tmp/plugin-extract-keywords-from-variables_1.3.0_1737230402816_0.7155178214848377","host":"s3://npm-registry-packages-npm-production"},"readme":"# @putout/plugin-extract-keywords-from-variables [![NPM version][NPMIMGURL]][NPMURL]\n\n[NPMIMGURL]: https://img.shields.io/npm/v/@putout/plugin-extract-keywords-from-variables.svg?style=flat&longCache=true\n[NPMURL]: https://npmjs.org/package/@putout/plugin-extract-keywords-from-variables \"npm\"\n\n> The JavaScript exceptions \"unexpected token\" occur when the parser does not see a token it recognizes at the given position, so it cannot make sense of the structure of the program. This might be a simple typo.\n>\n> (c) [MDN](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Errors/Unexpected_token)\n\n🐊[**Putout**](https://github.com/coderaiser/putout) plugin adds ability to extract `keywords` from variables. Check out in 🐊[**Putout Editor**](https://putout.cloudcmd.io/#/gist/fcaedaa9daf7f3a771274aca0da9ab1b/00850a5d28aec86b1b4083ba2ef9f81bd49aaaac).\n\n## Install\n\n```\nnpm i @putout/plugin-extract-keywords-from-variables -D\n```\n\n## Rule\n\n```json\n{\n    \"rules\": {\n        \"extract-keywords-from-variables\": \"on\"\n    }\n}\n```\n\n```diff\n-export const isTemplateMiddle = (a) => a?.type === 'TemplateMiddle',\n+export const isTemplateMiddle = (a) => a?.type === 'TemplateMiddle';\nexport const isTemplateTail = (a) => a?.type === 'TemplateTail';\n\n-const a 5;\n+const a = 5;\n\n-export const packContent = (content) {\n+export const packContent = (content) => {\n    console.log(a);\n}\n```\n\n## License\n\nMIT\n","publish_time":1737230402993,"maintainers":[{"name":"coderaiser","email":"mnemonic.enemy@gmail.com"}],"_cnpm_publish_time":1737230402993,"dist-tags":{"latest":"2.2.0"}}