/unused-module-extractor

🔍 A command to find unused components, useful for component-oriented development.

Primary LanguageShell

Unsed Module Extractor

Setup

$ cd ~/
$ git clone https://github.com/ogty/unused-module-extractor
$ source ~/unused-module-extractor/setup.sh

Usage

$ unused [options] <directory-path>

Options

-f, --ignore-files '<file-name> ...': exclude the files
-d, --ignore-dirs '<dir-name> ...': exclude the dirs

Example

$ unused -f "index.svelte app.d.ts" ./src
$ unused -d "routes lib" ./src