{"name":"@putout/plugin-extract-keywords-from-variables","version":"2.2.0","type":"commonjs","author":{"name":"coderaiser","email":"mnemonic.enemy@gmail.com","url":"https://github.com/coderaiser"},"description":"🐊Putout plugin adds ability to extract keywords from variables","homepage":"https://github.com/coderaiser/putout/tree/master/packages/plugin-extract-keywords-from-variables#readme","main":"lib/extract-keywords-from-variables.js","release":false,"tag":false,"changelog":false,"repository":{"type":"git","url":"git+https://github.com/coderaiser/putout.git"},"scripts":{"test":"madrun test","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"},"dependencies":{},"keywords":["putout","putout-plugin","putout-plugin-extract","plugin","extract","keywords"],"devDependencies":{"@putout/eslint-flat":"^2.0.0","@putout/test":"^11.0.0","c8":"^10.0.0","eslint":"^9.0.0","eslint-plugin-n":"^17.0.0","eslint-plugin-putout":"^24.0.0","madrun":"^10.0.0"},"peerDependencies":{"putout":">=38"},"license":"MIT","engines":{"node":">=18"},"publishConfig":{"access":"public"},"_id":"@putout/plugin-extract-keywords-from-variables@2.2.0","gitHead":"0ff1ddacb3ebdbd782b987ccd46be397c6b4ea0e","bugs":{"url":"https://github.com/coderaiser/putout/issues"},"_nodeVersion":"22.14.0","_npmVersion":"10.9.0","dist":{"integrity":"sha512-zzmF305c8jgQDcTBwdXEzEyv8r8P5Fs12YLEznPrcl4wXsfVffm5O8otQZvCx1taHhtVCmQFfDGXN34IGiCrNA==","shasum":"9f36115087dca64f0848046acd353cb2a6981ce7","tarball":"http://registry-npm.ywwl.com/@putout/plugin-extract-keywords-from-variables/download/@putout/plugin-extract-keywords-from-variables-2.2.0.tgz","fileCount":4,"unpackedSize":8470,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEYCIQD5pG8TIC9/YMIZdkF1VMJ/N6o+ac+ByCmxbTtXpjL8QwIhAPyTDBtUS7AnRM4EEWR2jLrB736WkXNqkZANSl5/o7N2"}],"size":2992,"noattachment":false,"key":"/@putout/plugin-extract-keywords-from-variables/-/@putout/plugin-extract-keywords-from-variables-2.2.0.tgz"},"_npmUser":{"name":"coderaiser","email":"mnemonic.enemy@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/plugin-extract-keywords-from-variables_2.2.0_1739529637870_0.940199469356015"},"_hasShrinkwrap":false,"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":1739529638085,"maintainers":[{"name":"coderaiser","email":"mnemonic.enemy@gmail.com"}],"_cnpm_publish_time":1739529638085,"dist-tags":{"latest":"2.2.0"}}