{"analyzedAt":"2022-07-04T06:58:02.680Z","collected":{"metadata":{"name":"babel-plugin-remove-unused-vars","scope":"unscoped","version":"2.2.0","description":"Babel plugin to remove unused variables and imports (Babel autofix for ESLint's no-unused-vars)","keywords":["babel","eslint","fix","unused","variables"],"date":"2019-07-22T13:55:38.918Z","author":{"name":"steelbrain","email":"i@steelbrain.me","username":"steelbrain"},"publisher":{"username":"steelbrain","email":"i@steelbrain.me"},"maintainers":[{"username":"steelbrain","email":"i@steelbrain.me"}],"repository":{"type":"git","url":"git+https://github.com/steelbrain/babel-plugin-remove-unused-vars.git"},"links":{"npm":"https://www.npmjs.com/package/babel-plugin-remove-unused-vars"},"license":"MIT","devDependencies":{"@babel/core":"^7.4.4","@babel/preset-env":"^7.4.4","@babel/preset-typescript":"^7.3.3","@babel/register":"^7.4.4","@types/babel__traverse":"^7.0.6","ava":"^1.4.1","cool-trim":"^1.1.1","prettier":"^1.17.0","sb-babel-cli":"^2.0.0"},"releases":[{"from":"2022-06-04T00:00:00.000Z","to":"2022-07-04T00:00:00.000Z","count":0},{"from":"2022-04-05T00:00:00.000Z","to":"2022-07-04T00:00:00.000Z","count":1},{"from":"2022-01-05T00:00:00.000Z","to":"2022-07-04T00:00:00.000Z","count":1},{"from":"2021-07-04T00:00:00.000Z","to":"2022-07-04T00:00:00.000Z","count":1},{"from":"2020-07-04T00:00:00.000Z","to":"2022-07-04T00:00:00.000Z","count":1}],"hasTestScript":true,"readme":"Babel Plugin Remove Unused Vars\n-------------------------------\n\nBabel plugin to remove unused variables and imports (Babel autofix for ESLint's no-unused-vars).\n\n### Installation\n\n```\nnpm install --save-dev babel-plugin-remove-unused-vars\n```\n\n### Usage\n\n```\nnpx babel --no-babelrc --retain-lines --plugins babel-plugin-remove-unused-vars --out-dir src-2/ src/\n```\n\nThis plugin is intended for source-to-source conversions. You can then replace original source\nwith output source, and have a quick look over at git diff to see what was changed and revert any\nunwanted changes.\n\n### Features\n\nRemoves\n\n- Unused imports\n- Unused function arguments\n- Unused results of function calls (ie. requires, or any others.)\n- Unused variables (even destructured ones)\n\n### Caveats\n\nThis plugin is **NOT** perfect. It'll have false-positives and remove used variables or sometimes keep unused variables around. It's highly rare but still something you have to keep in mind, if you experience this behavior please open a bug report with steps to reproduce.\n\nOne case that has been intentionally not handled for code simplicity and maintainer sanity is deep assignment expressions, this plugin retains the right side statement if it's an assignment and is used and left side is unused, but if the assignment is somewhere deep inside, it'll treat it as a normal expression and not keep it around if left side is unused.\n\nExplanation by example:\n\n```\nconst a = b = something();\n// ^ If a is unused, output:\nb = something();\n```\n```\nconst a = something(b = jing());\n// ^ If a is unused, output:\n// - nothing.\n```\n\nIt's a rare case, and a highly discouraged practice by most linters so support for it will not be added.\n\n### License\n\nThis project is licensed under the terms of MIT License. See the LICENSE file for more info."},"npm":{"downloads":[{"from":"2022-07-03T00:00:00.000Z","to":"2022-07-04T00:00:00.000Z","count":96},{"from":"2022-06-27T00:00:00.000Z","to":"2022-07-04T00:00:00.000Z","count":1251},{"from":"2022-06-04T00:00:00.000Z","to":"2022-07-04T00:00:00.000Z","count":5364},{"from":"2022-04-05T00:00:00.000Z","to":"2022-07-04T00:00:00.000Z","count":16677},{"from":"2022-01-05T00:00:00.000Z","to":"2022-07-04T00:00:00.000Z","count":24525},{"from":"2021-07-04T00:00:00.000Z","to":"2022-07-04T00:00:00.000Z","count":43379}],"starsCount":0},"github":{"starsCount":13,"forksCount":0,"subscribersCount":1,"issues":{"count":4,"openCount":1,"distribution":{"3600":2,"10800":0,"32400":0,"97200":0,"291600":1,"874800":0,"2624400":0,"7873200":0,"23619600":0,"70858800":1,"212576400":0},"isDisabled":false},"contributors":[{"username":"steelbrain","commitsCount":49}],"commits":[{"from":"2022-06-27T00:00:00.000Z","to":"2022-07-04T00:00:00.000Z","count":0},{"from":"2022-06-04T00:00:00.000Z","to":"2022-07-04T00:00:00.000Z","count":0},{"from":"2022-04-05T00:00:00.000Z","to":"2022-07-04T00:00:00.000Z","count":0},{"from":"2022-01-05T00:00:00.000Z","to":"2022-07-04T00:00:00.000Z","count":0},{"from":"2021-07-04T00:00:00.000Z","to":"2022-07-04T00:00:00.000Z","count":0}],"statuses":[{"context":"ci/circleci: build_and_test","state":"success"}]},"source":{"files":{"readmeSize":1809,"testsSize":6490,"hasNpmIgnore":true,"hasChangelog":true},"linters":["prettier"]}},"evaluation":{"quality":{"carefulness":0.9999999999999999,"tests":0.85,"health":1,"branding":0},"popularity":{"communityInterest":15,"downloadsCount":5559,"downloadsAcceleration":19.339212328767125,"dependentsCount":0},"maintenance":{"releasesFrequency":0.9,"commitsFrequency":0.9,"openIssues":0.9166666666666667,"issuesDistribution":0.9}},"score":{"final":0.6363850461980949,"detail":{"quality":0.8805191034015019,"popularity":0.06362032383747605,"maintenance":0.9998920052415079}}}