vue-unused-components-checker

Check your Vue project for unused Components
246,495 84
Install
npm install vue-unused-components-checker
Latest Version:1.1.2
License:MIT
Last Updated:Jan 7, 2023
Links: GitHub  ·  npm
Maintainer: berniwittmann

Vue Unused Components Checker

Check your Vue project for unused Components.

This tool gathers all file names of .vue Components and check whether they are imported and used somewhere.

Purpose

To help eliminate dead code in your Vue project, this package scans your codebase for components that have not been imported anywhere and thus are unused, so you can spot and remove them easily.

Installation

You should have node and npm or yarn installed.

$ npm install vue-unused-components-checker -g

Basic Usage

Check the current file tree

$ check-unused-comp .

Check a specific folder

$ check-unused-comp src/js

Limit the count of open files, since this can lead to errors, when directories are too large

$ check-unused-comp -o 20 src/js

Ignore specific files using glob patterns. Default: **/{node_modules,.nuxt,dist,coverage}/**

$ check-unused-comp -i **/node_modules/** src/js

Documentation

Refer to the basic instructions above. More thorough documentation will be added asap.

Changelog

For a list of changes, please refer to the CHANGELOG.

Contributions

Contributions are more than welcome, check our CONTRIBUTING Guide.

License

MIT licensed.

Related Packages

eslint-plugin-vueunused

a eslint plugin for detecting unused code in vue single file component

939
detect-touch-device

Javascript library to detect touch friendly devices

62,595 4
vite-plugin-deadcodes

Vite plugin to detect unused files. JS, TS, React, Vue projects are supported.

8,813 1
vue-unused

A highly accurate CLI tool to find and remove unused Vue components and files.

7,405 3

Version History

Version Released License
1.1.2 MIT
1.1.1 MIT
1.1.0 MIT
1.0.1 MIT
1.0.0 MIT