{"name":"@putout/plugin-extract-keywords-from-variables","version":"1.5.1","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.5.1","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":"7bbfd08bf306f894125b94d883ccb16308a84623","tarball":"http://registry-npm.ywwl.com/@putout/plugin-extract-keywords-from-variables/download/@putout/plugin-extract-keywords-from-variables-1.5.1.tgz","fileCount":4,"integrity":"sha512-RrFtRfUMFvVpFso3mZZ1bUZRXHE1N85pydJC69mOihUBBY8zWVcNnuU9Zff/Shkk5ml1faVkmv2JSanYMf6+zg==","signatures":[{"sig":"MEUCIFJnaOVJT6mHIA+DyS5KAHFnzUioeCyq23gJZ8ooyy2QAiEA7Z/kqSKw/pU7Fzo+BRnEI0EaZ8Pa4uFrKq2hOfR+1rQ=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":7023,"size":2736,"noattachment":false,"key":"/@putout/plugin-extract-keywords-from-variables/-/@putout/plugin-extract-keywords-from-variables-1.5.1.tgz"},"main":"lib/extract-keywords-from-variables.js","type":"commonjs","engines":{"node":">=18"},"gitHead":"2cc8d24f3d14fc78f84b4845a639b956a17255c4","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.5.1_1737583566968_0.47345965750232977","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":1737583567201,"maintainers":[{"name":"coderaiser","email":"mnemonic.enemy@gmail.com"}],"_cnpm_publish_time":1737583567201,"dist-tags":{"latest":"2.2.0"}}