{"name":"@putout/plugin-extract-keywords-from-variables","version":"2.1.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@2.1.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":"3ce3bfd61551268ad9670389ddc2dbed5167363d","tarball":"http://registry-npm.ywwl.com/@putout/plugin-extract-keywords-from-variables/download/@putout/plugin-extract-keywords-from-variables-2.1.0.tgz","fileCount":4,"integrity":"sha512-1WzAAMyFGP3mJcJOXtB9Jw5b9RyK0g4nYEttZBssTgROjhyqAdQ6QUhjpBjAK44kH1moA5wcDVuWpmVfo4sqHQ==","signatures":[{"sig":"MEYCIQDN8zjGjhvwf9I60yia1FpjWy9NrdChj7kTAPhZZkGLRgIhALHtd09jDMMPItlBtaYj/Sxvb2hIkWJqWFROaZUcxjiR","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":7617,"size":2849,"noattachment":false,"key":"/@putout/plugin-extract-keywords-from-variables/-/@putout/plugin-extract-keywords-from-variables-2.1.0.tgz"},"main":"lib/extract-keywords-from-variables.js","type":"commonjs","engines":{"node":">=18"},"gitHead":"3ef5e39a6f7178e3a89c8ed3750d6d1c31517561","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.1","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":"^24.0.0"},"peerDependencies":{"putout":">=38"},"_npmOperationalInternal":{"tmp":"tmp/plugin-extract-keywords-from-variables_2.1.0_1738676307567_0.49037895072005333","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":1738676307771,"maintainers":[{"name":"coderaiser","email":"mnemonic.enemy@gmail.com"}],"_cnpm_publish_time":1738676307771,"dist-tags":{"latest":"2.2.0"}}