{"_id":"babel-plugin-danger-remove-unused-imports","_rev":"4-e549a6a284b68b1dd3e9c6a6d11adb9a","name":"babel-plugin-danger-remove-unused-imports","dist-tags":{"latest":"2.1.4"},"versions":{"2.1.0":{"name":"babel-plugin-danger-remove-unused-imports","version":"2.1.0","keywords":["imcuttle","shake","remove-unused","babel-plugin"],"author":"","license":"MIT","_id":"babel-plugin-danger-remove-unused-imports@2.1.0","maintainers":[{"name":"shiftj","email":"stjkl@foxmail.com"}],"homepage":"https://github.com/shiftj18/babel-plugin-danger-remove-unused-import#readme","bugs":{"url":"https://github.com/shiftj18/babel-plugin-danger-remove-unused-import/issues"},"dist":{"shasum":"203d9d44e9df9923785f2964bbd7239211274aa2","tarball":"https://registry.npmjs.org/babel-plugin-danger-remove-unused-imports/-/babel-plugin-danger-remove-unused-imports-2.1.0.tgz","fileCount":4,"integrity":"sha512-62bplh1gHdNISy9Jjb0zqhR5SreB9pdgw3/IsNzv7YTBfyrK09ZbxnJxeNUjy5pE+BOWumnP2snJH233i+fpiw==","signatures":[{"sig":"MEUCIQDtQ9+bZPtjggkSjaodhgUQbfChwFWNegJaxTZ/qKcXLgIgEnWtXauQzu8lgJ8vOTTsX64kZmYk9obgGmco/R83Mmc=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":5076},"main":"index.js","husky":{"hooks":{"commit-msg":"commitlint -e $HUSKY_GIT_PARAMS","pre-commit":"pretty-quick --staged"}},"engines":{"node":">=7"},"gitHead":"8ac3d418de25bab690cc1e782b90130999c099a7","scripts":{"dev":"npm run babel -- -w","test":"jest","babel":"babel src --out-dir lib -D","clean":"rm -rf lib/*","version":"npm run changelog","changelog":"conventional-changelog -p angular -i CHANGELOG.md -s -r 0 && git add CHANGELOG.md","prepublish":"npm run clean; npm run babel"},"_npmUser":{"name":"shiftj","email":"stjkl@foxmail.com"},"commitlint":{"extends":["@commitlint/config-conventional"]},"repository":{"url":"git+https://github.com/shiftj18/babel-plugin-danger-remove-unused-import.git","type":"git"},"_npmVersion":"10.5.2","description":"> Fork from `babel-plugin-danger-remove-unused-import` and `babel-plugin-remove-unused-imports`, Support remove unused `require`.","directories":{"lib":"lib","test":"test"},"_nodeVersion":"20.13.1","dependencies":{},"_hasShrinkwrap":false,"devDependencies":{"jest":"^23.6.0","prettier":"^1.14.3","babel-cli":"^6.26.0","babel-core":"^6.26.0","@types/jest":"^23.3.9","pretty-quick":"^1.8.0","@moyuyc/husky":"^1.1.1","@commitlint/cli":"^7.2.1","babel-preset-react":"^6.24.1","babel-preset-es2015":"^6.24.1","babel-preset-stage-0":"^6.24.1","conventional-changelog-cli":"^2.0.11","@commitlint/config-conventional":"^7.1.2","babel-plugin-transform-es2015-classes":"^6.24.1","babel-plugin-transform-class-properties":"^6.24.1","babel-plugin-transform-decorators-legacy":"^1.3.4"},"_npmOperationalInternal":{"tmp":"tmp/babel-plugin-danger-remove-unused-imports_2.1.0_1728880407889_0.9318100508736256","host":"s3://npm-registry-packages"}},"2.1.1":{"name":"babel-plugin-danger-remove-unused-imports","version":"2.1.1","keywords":["imcuttle","shake","remove-unused","babel-plugin"],"author":"","license":"MIT","_id":"babel-plugin-danger-remove-unused-imports@2.1.1","maintainers":[{"name":"shiftj","email":"stjkl@foxmail.com"}],"homepage":"https://github.com/shiftj18/babel-plugin-danger-remove-unused-import#readme","bugs":{"url":"https://github.com/shiftj18/babel-plugin-danger-remove-unused-import/issues"},"dist":{"shasum":"7966db922f87cc135bfd1af212abf39fa04bd629","tarball":"https://registry.npmjs.org/babel-plugin-danger-remove-unused-imports/-/babel-plugin-danger-remove-unused-imports-2.1.1.tgz","fileCount":6,"integrity":"sha512-VaZEB06bQEtiLDD8KKos4nuKYR89ifJQfdDY3aTgEfbo3QMD9YgJezYe+OOIqtj5wHpGcGgz1CjA+qpYOQI+8Q==","signatures":[{"sig":"MEUCIDanGOFVf7S3ttEsXTlE99nhX1X7XsjmMzs1bGFU5SgnAiEA1+3se94iteExZ25ivSWBLbWL2aWLjN24iHKQZnr7fRI=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":10431},"main":"index.js","husky":{"hooks":{"commit-msg":"commitlint -e $HUSKY_GIT_PARAMS","pre-commit":"pretty-quick --staged"}},"engines":{"node":">=7"},"gitHead":"1c747b93a81df50ac54223a776efd6ccc2c2d3e3","scripts":{"dev":"npm run babel -- -w","test":"jest","babel":"babel src --out-dir lib -D","clean":"rm -rf lib/*","version":"npm run changelog","changelog":"conventional-changelog -p angular -i CHANGELOG.md -s -r 0 && git add CHANGELOG.md","prepublishOnly":"npm run clean; npm run babel"},"_npmUser":{"name":"shiftj","email":"stjkl@foxmail.com"},"commitlint":{"extends":["@commitlint/config-conventional"]},"repository":{"url":"git+https://github.com/shiftj18/babel-plugin-danger-remove-unused-import.git","type":"git"},"_npmVersion":"10.5.2","description":"> Fork from `babel-plugin-danger-remove-unused-import` and `babel-plugin-remove-unused-imports`, Support remove unused `require`.","directories":{"lib":"lib","test":"test"},"_nodeVersion":"20.13.1","dependencies":{},"_hasShrinkwrap":false,"devDependencies":{"jest":"^23.6.0","prettier":"^1.14.3","babel-cli":"^6.26.0","babel-core":"^6.26.0","@types/jest":"^23.3.9","pretty-quick":"^1.8.0","@moyuyc/husky":"^1.1.1","@commitlint/cli":"^7.2.1","babel-preset-react":"^6.24.1","babel-preset-es2015":"^6.24.1","babel-preset-stage-0":"^6.24.1","conventional-changelog-cli":"^2.0.11","@commitlint/config-conventional":"^7.1.2","babel-plugin-transform-es2015-classes":"^6.24.1","babel-plugin-transform-class-properties":"^6.24.1","babel-plugin-transform-decorators-legacy":"^1.3.4"},"_npmOperationalInternal":{"tmp":"tmp/babel-plugin-danger-remove-unused-imports_2.1.1_1728899122950_0.01823201358044102","host":"s3://npm-registry-packages"}},"2.1.2":{"name":"babel-plugin-danger-remove-unused-imports","version":"2.1.2","keywords":["imcuttle","shake","remove-unused","babel-plugin"],"author":"","license":"MIT","_id":"babel-plugin-danger-remove-unused-imports@2.1.2","maintainers":[{"name":"shiftj","email":"stjkl@foxmail.com"}],"homepage":"https://github.com/shiftj18/babel-plugin-danger-remove-unused-import#readme","bugs":{"url":"https://github.com/shiftj18/babel-plugin-danger-remove-unused-import/issues"},"dist":{"shasum":"e6e90766e7ec7fe9f9fc7be0f19aa1d519ac2828","tarball":"https://registry.npmjs.org/babel-plugin-danger-remove-unused-imports/-/babel-plugin-danger-remove-unused-imports-2.1.2.tgz","fileCount":6,"integrity":"sha512-r0N45lYPTKOrnG5qR4HizHS8TGB3bjwdwYZS3P9FrbqkXk9XtkjOVppYwImYsPBUwjjFzykSUCzyMxsm6KSijg==","signatures":[{"sig":"MEYCIQDbgLYbu1MUNIPUIhc1obmNj6Y/g8xNhaeE4+i9IkmEDQIhAL3Rce/8B28/N+0RGbJRhRU3JU00FoAsUXJNPGvvmKSN","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":9640},"main":"index.js","husky":{"hooks":{"commit-msg":"commitlint -e $HUSKY_GIT_PARAMS","pre-commit":"pretty-quick --staged"}},"engines":{"node":">=7"},"gitHead":"033e0e5f596705c8713d554606bd03bd2a555b3b","scripts":{"dev":"npm run babel -- -w","test":"jest","babel":"babel src --out-dir lib -D","clean":"rm -rf lib/*","version":"npm run changelog","changelog":"conventional-changelog -p angular -i CHANGELOG.md -s -r 0 && git add CHANGELOG.md","prepublishOnly":"npm run clean; npm run babel"},"_npmUser":{"name":"shiftj","email":"stjkl@foxmail.com"},"commitlint":{"extends":["@commitlint/config-conventional"]},"repository":{"url":"git+https://github.com/shiftj18/babel-plugin-danger-remove-unused-import.git","type":"git"},"_npmVersion":"10.5.2","description":"> Fork from `babel-plugin-danger-remove-unused-import` and `babel-plugin-remove-unused-imports`, Support remove unused `require`.","directories":{"lib":"lib","test":"test"},"_nodeVersion":"20.13.1","publishConfig":{"registry":"https://registry.npmjs.org/"},"_hasShrinkwrap":false,"devDependencies":{"jest":"^23.6.0","prettier":"^1.14.3","@babel/cli":"^7.25.9","@babel/core":"^7.26.0","@types/jest":"^23.3.9","pretty-quick":"^1.8.0","@moyuyc/husky":"^1.1.1","@commitlint/cli":"^7.2.1","@babel/preset-env":"^7.26.0","@commitlint/config-conventional":"^7.1.2"},"_npmOperationalInternal":{"tmp":"tmp/babel-plugin-danger-remove-unused-imports_2.1.2_1729876043453_0.6729257493627587","host":"s3://npm-registry-packages"}},"2.1.3":{"name":"babel-plugin-danger-remove-unused-imports","version":"2.1.3","keywords":["imcuttle","shake","remove-unused","babel-plugin"],"author":"","license":"MIT","_id":"babel-plugin-danger-remove-unused-imports@2.1.3","maintainers":[{"name":"shiftj","email":"stjkl@foxmail.com"}],"homepage":"https://github.com/shiftj18/babel-plugin-danger-remove-unused-import#readme","bugs":{"url":"https://github.com/shiftj18/babel-plugin-danger-remove-unused-import/issues"},"dist":{"shasum":"a15538f66a762a6fb581e5327d6a6a9eb4784e8a","tarball":"https://registry.npmjs.org/babel-plugin-danger-remove-unused-imports/-/babel-plugin-danger-remove-unused-imports-2.1.3.tgz","fileCount":6,"integrity":"sha512-IvhRnKT/5o1HlS7eKL0prYtNhhqGJSrh9s9NC/5sSg1VqWySAj8ov+FfIpd+AWDd1/J3nWFsL8559VdrkpvkOw==","signatures":[{"sig":"MEYCIQDbqlEHEx6yzOM2GL1VjREktqvsf80VgqdSfxPQhMtragIhAL6wxenGPrKiuxhHkwcASfzh8mSho4CDG7cuq4klD+F5","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":9772},"main":"index.js","husky":{"hooks":{"commit-msg":"commitlint -e $HUSKY_GIT_PARAMS","pre-commit":"pretty-quick --staged"}},"engines":{"node":">=7"},"gitHead":"0d36b212d9f2e55631b4a930dda104975ae31074","scripts":{"dev":"npm run babel -- -w","test":"jest","babel":"babel src --out-dir lib -D","clean":"rm -rf lib/*","version":"npm run changelog","changelog":"conventional-changelog -p angular -i CHANGELOG.md -s -r 0 && git add CHANGELOG.md","prepublishOnly":"npm run clean; npm run babel"},"_npmUser":{"name":"shiftj","email":"stjkl@foxmail.com"},"commitlint":{"extends":["@commitlint/config-conventional"]},"repository":{"url":"git+https://github.com/shiftj18/babel-plugin-danger-remove-unused-import.git","type":"git"},"_npmVersion":"10.5.2","description":"> Fork from `babel-plugin-danger-remove-unused-import` and `babel-plugin-remove-unused-imports`, Support remove unused `require`.","directories":{"lib":"lib","test":"test"},"_nodeVersion":"20.13.1","dependencies":{},"publishConfig":{"registry":"https://registry.npmjs.org/"},"_hasShrinkwrap":false,"devDependencies":{"jest":"^23.6.0","prettier":"^1.14.3","@babel/cli":"^7.25.9","@babel/core":"^7.26.0","@types/jest":"^23.3.9","pretty-quick":"^1.8.0","@moyuyc/husky":"^1.1.1","@commitlint/cli":"^7.2.1","@babel/preset-env":"^7.26.0","conventional-changelog-cli":"^2.0.11","@commitlint/config-conventional":"^7.1.2"},"_npmOperationalInternal":{"tmp":"tmp/babel-plugin-danger-remove-unused-imports_2.1.3_1730889429983_0.07074463966024624","host":"s3://npm-registry-packages"}},"2.1.4":{"name":"babel-plugin-danger-remove-unused-imports","version":"2.1.4","description":"> Fork from `babel-plugin-danger-remove-unused-import` and `babel-plugin-remove-unused-imports`, Support remove unused `require`.","main":"index.js","scripts":{"test":"jest","clean":"rm -rf lib/*","babel":"babel src --out-dir lib -D","dev":"npm run babel -- -w","prepublishOnly":"npm run clean && npm run test && npm run babel","changelog":"conventional-changelog -p angular -i CHANGELOG.md -s -r 0 && git add CHANGELOG.md","version":"npm run changelog","example":"node ./examples/index.js"},"keywords":["imcuttle","shake","remove-unused","babel-plugin"],"engines":{"node":">=7"},"author":"","license":"MIT","devDependencies":{"@babel/cli":"^7.25.9","@babel/core":"^7.26.0","@babel/preset-env":"^7.26.0","@babel/preset-react":"^7.25.9","@commitlint/cli":"^7.2.1","@commitlint/config-conventional":"^7.1.2","@moyuyc/husky":"^1.1.1","@types/jest":"^23.3.14","conventional-changelog-cli":"^2.0.11","jest":"^29.7.0","prettier":"^1.14.3","pretty-quick":"^1.8.0"},"directories":{"lib":"lib","test":"test"},"repository":{"type":"git","url":"git+https://github.com/shiftj18/babel-plugin-danger-remove-unused-import.git"},"bugs":{"url":"https://github.com/shiftj18/babel-plugin-danger-remove-unused-import/issues"},"homepage":"https://github.com/shiftj18/babel-plugin-danger-remove-unused-import#readme","commitlint":{"extends":["@commitlint/config-conventional"]},"husky":{"hooks":{"pre-commit":"pretty-quick --staged","commit-msg":"commitlint -e $HUSKY_GIT_PARAMS"}},"publishConfig":{"registry":"https://registry.npmjs.org/"},"_id":"babel-plugin-danger-remove-unused-imports@2.1.4","gitHead":"9427298eb1fdef649e1f9d5be47bc41dd6ed0ad5","_nodeVersion":"20.13.1","_npmVersion":"10.5.2","dist":{"integrity":"sha512-EQ44lg99fzUuRb7vs2h6Qyle7TzB9UhnYfMHGv+CmXTp5Umltmn//E0YsHueQ7oNtXsWWZUVi+Li6oJ+MMTVzQ==","shasum":"91442eed0311ad75ad05394ead958e23590f44c3","tarball":"https://registry.npmjs.org/babel-plugin-danger-remove-unused-imports/-/babel-plugin-danger-remove-unused-imports-2.1.4.tgz","fileCount":6,"unpackedSize":9959,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQC22kRceHqrgFBMCuR6v1U3cXpoXtqjlvCgiB5sA5Xk9AIhAPsppJAWZQy5tY0lIjTZD9O/dCrZE3OSbhe9OvSB5Ox5"}]},"_npmUser":{"name":"shiftj","email":"stjkl@foxmail.com"},"maintainers":[{"name":"shiftj","email":"stjkl@foxmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/babel-plugin-danger-remove-unused-imports_2.1.4_1731064432456_0.1678222188080869"},"_hasShrinkwrap":false}},"time":{"created":"2024-10-14T04:33:27.888Z","modified":"2024-11-08T11:13:52.843Z","2.1.0":"2024-10-14T04:33:28.068Z","2.1.1":"2024-10-14T09:45:23.127Z","2.1.2":"2024-10-25T17:07:23.646Z","2.1.3":"2024-11-06T10:37:10.134Z","2.1.4":"2024-11-08T11:13:52.676Z"},"bugs":{"url":"https://github.com/shiftj18/babel-plugin-danger-remove-unused-import/issues"},"license":"MIT","homepage":"https://github.com/shiftj18/babel-plugin-danger-remove-unused-import#readme","keywords":["imcuttle","shake","remove-unused","babel-plugin"],"repository":{"type":"git","url":"git+https://github.com/shiftj18/babel-plugin-danger-remove-unused-import.git"},"description":"> Fork from `babel-plugin-danger-remove-unused-import` and `babel-plugin-remove-unused-imports`, Support remove unused `require`.","maintainers":[{"name":"shiftj","email":"stjkl@foxmail.com"}],"readme":"# babel-plugin-danger-remove-unused-imports\n\n> Fork from `babel-plugin-danger-remove-unused-import` and `babel-plugin-remove-unused-imports`, Support remove unused `require`.\n\n[![Build status](https://img.shields.io/travis/imcuttle/babel-plugin-danger-remove-unused-import/master.svg?style=flat-square)](https://travis-ci.org/imcuttle/babel-plugin-danger-remove-unused-import)\n[![Test coverage](https://img.shields.io/codecov/c/github/imcuttle/babel-plugin-danger-remove-unused-import.svg?style=flat-square)](https://codecov.io/github/imcuttle/babel-plugin-danger-remove-unused-import?branch=master)\n[![NPM version](https://img.shields.io/npm/v/babel-plugin-danger-remove-unused-import.svg?style=flat-square)](https://www.npmjs.com/package/babel-plugin-danger-remove-unused-import)\n[![NPM Downloads](https://img.shields.io/npm/dm/babel-plugin-danger-remove-unused-import.svg?style=flat-square&maxAge=43200)](https://www.npmjs.com/package/babel-plugin-danger-remove-unused-import)\n[![Prettier](https://img.shields.io/badge/code_style-prettier-ff69b4.svg?style=flat-square)](https://prettier.io/)\n[![Conventional Commits](https://img.shields.io/badge/Conventional%20Commits-1.0.0-yellow.svg?style=flat-square)](https://conventionalcommits.org)\n\nFor shrinking the bundled javascript size :smile:\n\n**Note: remove unused import is dangerous**\n**because the imported package may have some side effects!**\n\n## Option\n\n```javascript\n{\n  ignore: ['react']\n}\n```\n\n## Input\n\n```javascript\nimport React from 'react'\nimport Button from 'button'\nimport _ from 'lodash'\nimport moment from 'moment'\nimport { data } from '../some-where'\n\n// ...\n\nconst a = {}\na.moment = <Button x={data} />\n```\n\n## Output\n\n```diff\nimport React from 'react'\nimport Button from 'button'\n- import _ from 'lodash'\n- import moment from 'moment'\nimport {data} from '../some-where'\n\n// ...\n\nconst a = {}\na.moment = <Button x={data} />\n```\n\n## Todo\n\n- [x] Supporting Scope\n","readmeFilename":"Readme.md"}