A CLI tool to detect unused `.vue` components in Vue.js projects. Version 1.1.2 (latest as of May 2021) scans the file tree for `.vue` files and checks if they are imported and used anywhere. It supports limiting open files for large directories and ignoring glob patterns (e.g., node_modules). The tool is simple, focused, and works with Vue 2 projects. It is not actively maintained (no releases since 2021). Alternatives like `eslint-plugin-vue` with `no-unused-components` provide deeper analysis.
npm install vue-unused-components-checkerVerified import paths — ran on the pinned version, not inferred.
Programmatic usage that scans src/ directory for unused .vue components and logs the list.
Run `check-unused-comp .` instead of trying to run the package name directly.
Use `import` syntax or set `"type": "module"` in your package.json.
Switch to eslint-plugin-vue for better maintenance and integration.
Use `-o 20` (no equals sign) to limit open files.
Use `check-unused-comp .` instead of `vue-unused-components-checker .`
Use `import { checkUnusedComponents } from 'vue-unused-components-checker'` or convert project to ESM.Use `-o 20` to limit open files and avoid hitting the OS path length limit.