{"name":"unplugin-unused","version":"0.4.2","keywords":["unplugin","rollup","vite","esbuild","webpack"],"author":{"name":"三咲智子 Kevin Deng","email":"sxzz@sxzz.moe"},"license":"MIT","_id":"unplugin-unused@0.4.2","maintainers":[{"name":"sxzz","email":"sxzz@sxzz.moe"}],"homepage":"https://github.com/unplugin/unplugin-unused#readme","bugs":{"url":"https://github.com/unplugin/unplugin-unused/issues"},"dist":{"shasum":"5004fd8d130ec87648a5ba1f76c29d48d6104e00","tarball":"http://registry-npm.ywwl.com/unplugin-unused/download/unplugin-unused-0.4.2.tgz","fileCount":22,"integrity":"sha512-ODi4SC6FNMdjAx2nUQxhq54avCBcHAznbBSc9p7izrvyXeVfKOaiJrb3qH0gsI7GgWr9Clj3B2nZGfUJARl+Ng==","signatures":[{"sig":"MEQCIBZY6EoLuMTTziruflInoocslnl2lWD7MouAEW1qtduKAiAn3z529s8S2xkULPzkQtulHHJ8ZAIKvEIWsEf97wMk7Q==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":15018,"size":5161,"noattachment":false,"key":"/unplugin-unused/-/unplugin-unused-0.4.2.tgz"},"main":"./dist/index.js","type":"module","_from":"file:unplugin-unused-0.4.2.tgz","types":"./dist/index.d.ts","module":"./dist/index.js","engines":{"node":">=18.12.0"},"exports":{".":"./dist/index.js","./*":"./*","./api":"./dist/api.js","./vite":"./dist/vite.js","./rollup":"./dist/rollup.js","./rspack":"./dist/rspack.js","./esbuild":"./dist/esbuild.js","./webpack":"./dist/webpack.js","./rolldown":"./dist/rolldown.js"},"funding":"https://github.com/sponsors/sxzz","scripts":{"dev":"tsdown --watch","lint":"eslint --cache .","test":"vitest","build":"tsdown","release":"bumpp && pnpm publish","lint:fix":"pnpm run lint --fix","typecheck":"tsc --noEmit"},"_npmUser":{"name":"sxzz","email":"sxzz@sxzz.moe"},"prettier":"@sxzz/prettier-config","_resolved":"/private/var/folders/d9/9drlr87n4j904th57x6955l40000gn/T/94c8c6c43a39e3c896f830194d93aaa5/unplugin-unused-0.4.2.tgz","_integrity":"sha512-ODi4SC6FNMdjAx2nUQxhq54avCBcHAznbBSc9p7izrvyXeVfKOaiJrb3qH0gsI7GgWr9Clj3B2nZGfUJARl+Ng==","repository":{"url":"git+https://github.com/unplugin/unplugin-unused.git","type":"git"},"_npmVersion":"10.9.2","description":"Check unused dependencies.","directories":{},"_nodeVersion":"22.14.0","dependencies":{"unplugin":"^2.2.0","js-tokens":"^9.0.1","pkg-types":"^1.3.1","picocolors":"^1.1.1","unplugin-utils":"^0.2.4"},"publishConfig":{"access":"public"},"typesVersions":{"*":{"*":["./dist/*","./*"]}},"_hasShrinkwrap":false,"devDependencies":{"tsx":"^4.19.3","vite":"^6.1.1","bumpp":"^10.0.3","eslint":"^9.21.0","tsdown":"^0.6.0","vitest":"^3.0.6","prettier":"^3.5.2","typescript":"^5.7.3","@types/node":"^22.13.5","@sxzz/test-utils":"^0.5.1","@sxzz/eslint-config":"^5.1.1","escape-string-regexp":"^5.0.0","@sxzz/prettier-config":"^2.2.0"},"_npmOperationalInternal":{"tmp":"tmp/unplugin-unused_0.4.2_1740414709694_0.7616370731799469","host":"s3://npm-registry-packages-npm-production"},"readme":"# unplugin-unused\n\n[![npm version][npm-version-src]][npm-version-href]\n[![npm downloads][npm-downloads-src]][npm-downloads-href]\n[![Unit Test][unit-test-src]][unit-test-href]\n\nCheck unused dependencies.\n\n## Installation\n\n```bash\nnpm i -D unplugin-unused\n```\n\n## Usage\n\n```ts\nUnused({\n  include: [/\\.([cm]?[jt]sx?|vue)$/],\n  exclude: [/node_modules/],\n  level: 'warning', // or 'error'\n  /**\n   * Ignore some dependencies.\n   */\n  ignore: {\n    peerDependencies: ['vue'],\n  },\n  // Or ignore all kinds of dependencies.\n  // ignore: ['vue'],\n\n  /**\n   * Dependency kinds to check.\n   */\n  depKinds: ['dependencies', 'peerDependencies'],\n})\n```\n\n<details>\n<summary>Vite</summary><br>\n\n```ts\n// vite.config.ts\nimport UnpluginUnused from 'unplugin-unused/vite'\n\nexport default defineConfig({\n  plugins: [UnpluginUnused()],\n})\n```\n\n<br></details>\n\n<details>\n<summary>Rollup</summary><br>\n\n```ts\n// rollup.config.js\nimport UnpluginUnused from 'unplugin-unused/rollup'\n\nexport default {\n  plugins: [UnpluginUnused()],\n}\n```\n\n<br></details>\n\n<details>\n<summary>Rolldown</summary><br>\n\n```ts\n// rolldown.config.js\nimport UnpluginUnused from 'unplugin-unused/rolldown'\n\nexport default {\n  plugins: [UnpluginUnused()],\n}\n```\n\n<br></details>\n\n<details>\n<summary>esbuild</summary><br>\n\n```ts\n// esbuild.config.js\nimport { build } from 'esbuild'\n\nbuild({\n  plugins: [require('unplugin-unused/esbuild')()],\n})\n```\n\n<br></details>\n\n<details>\n<summary>Webpack</summary><br>\n\n```ts\n// webpack.config.js\nmodule.exports = {\n  /* ... */\n  plugins: [require('unplugin-unused/webpack')()],\n}\n```\n\n<br></details>\n\n## Sponsors\n\n<p align=\"center\">\n  <a href=\"https://cdn.jsdelivr.net/gh/sxzz/sponsors/sponsors.svg\">\n    <img src='https://cdn.jsdelivr.net/gh/sxzz/sponsors/sponsors.svg'/>\n  </a>\n</p>\n\n## License\n\n[MIT](./LICENSE) License © 2024-PRESENT [Kevin Deng](https://github.com/sxzz)\n\n<!-- Badges -->\n\n[npm-version-src]: https://img.shields.io/npm/v/unplugin-unused.svg\n[npm-version-href]: https://npmjs.com/package/unplugin-unused\n[npm-downloads-src]: https://img.shields.io/npm/dm/unplugin-unused\n[npm-downloads-href]: https://www.npmcharts.com/compare/unplugin-unused?interval=30\n[unit-test-src]: https://github.com/unplugin/unplugin-unused/actions/workflows/unit-test.yml/badge.svg\n[unit-test-href]: https://github.com/unplugin/unplugin-unused/actions/workflows/unit-test.yml\n","publish_time":1740414709880,"_cnpm_publish_time":1740414709880,"dist-tags":{"latest":"0.6.0"}}