{"name":"@putout/plugin-remove-unreferenced-variables","version":"6.0.0","keywords":["putout","putout-plugin","putout-plugin-remove","plugin","remove","unreferenced","variables"],"author":{"url":"https://github.com/coderaiser","name":"coderaiser","email":"mnemonic.enemy@gmail.com"},"license":"MIT","_id":"@putout/plugin-remove-unreferenced-variables@6.0.0","maintainers":[{"name":"coderaiser","email":"mnemonic.enemy@gmail.com"}],"homepage":"https://github.com/coderaiser/putout/tree/master/packages/plugin-remove-unreferenced-variables#readme","bugs":{"url":"https://github.com/coderaiser/putout/issues"},"tag":false,"dist":{"shasum":"343c05793e5fdf545233f1d0c399270c3c3b768a","tarball":"http://registry-npm.ywwl.com/@putout/plugin-remove-unreferenced-variables/download/@putout/plugin-remove-unreferenced-variables-6.0.0.tgz","fileCount":4,"integrity":"sha512-HN75TPv4wMA4yaGd0cX8e6NGgMJ06K/6AlNzW5SfZkTBqnMyAjWl9E/dP+qT0QCz/gTWN7yQlLDNwWb9t+OoSQ==","signatures":[{"sig":"MEUCICw55bcGKmTwvYaq7i1BDvV07qCg3I9IY5VIwlaQ7nleAiEA3VveEtj/px2QiEEwJ8wD1BuaJEHNJZMgEsJNX+JMlYY=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":5839,"size":2349,"noattachment":false,"key":"/@putout/plugin-remove-unreferenced-variables/-/@putout/plugin-remove-unreferenced-variables-6.0.0.tgz"},"main":"lib/remove-unreferenced-variables.js","type":"module","engines":{"node":">=20"},"gitHead":"c51f11bd9ba80d6662e89a051f60d116bcc08f0a","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.1.0","description":"🐊Putout plugin adds ability to find and remove unreferenced variables","directories":{},"_nodeVersion":"23.11.0","dependencies":{},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"c8":"^10.0.0","eslint":"^9.0.0","madrun":"^11.0.0","@putout/test":"^13.0.0","eslint-plugin-n":"^17.0.0","@putout/eslint-flat":"^3.0.0","eslint-plugin-putout":"^27.0.0","@putout/plugin-for-of":"*","@putout/plugin-minify":"*"},"peerDependencies":{"putout":">=40"},"_npmOperationalInternal":{"tmp":"tmp/plugin-remove-unreferenced-variables_6.0.0_1748376940231_0.24549178987286124","host":"s3://npm-registry-packages-npm-production"},"readme":"# @putout/plugin-remove-unreferenced-variables [![NPM version][NPMIMGURL]][NPMURL]\n\n[NPMIMGURL]: https://img.shields.io/npm/v/@putout/plugin-remove-unreferenced-variables.svg?style=flat&longCache=true\n[NPMURL]: https://npmjs.org/package/@putout/plugin-remove-unreferenced-variables \"npm\"\n\n> A **variable** is a named reference to a **value**.\n>\n> (c) [MDN](https://developer.mozilla.org/en-US/docs/Glossary/Variable)\n\n🐊[**Putout**](https://github.com/coderaiser/putout) plugin adds ability to find and remove **variables** without **references**. Merged with [`@putout/plugin-variables`](https://www.npmjs.com/package/@putout/plugin-variables).\n\n## Install\n\n```\nnpm i @putout/plugin-remove-unreferenced-variables -D\n```\n\n## Rule\n\n```json\n{\n    \"rules\": {\n        \"remove-unreferenced-variables\": \"on\"\n    }\n}\n```\n\n## ❌ Example of incorrect code\n\n```js\nlet a;\nlet b;\n\na = 5;\nb = 6;\n\nconsole.log(a);\n```\n\n## ✅ Example of correct code\n\n```js\nlet a;\n\na = 5;\n\nconsole.log(a);\n```\n\n## License\n\nMIT\n","publish_time":1748376940444,"_cnpm_publish_time":1748376940444,"dist-tags":{"latest":"6.0.1"}}