findead

Dead react components finder

Usage no npm install needed!

<script type="module">
  import findead from 'https://cdn.skypack.dev/findead';
</script>

README

:mag: findead

Dead react components finder

NPM Version NPM Downloads Tests

:dart: Motivation: Dead Components

Many times in large or even small projects, we forgot some components in code that we'll never use and we never take time to search one by one and remove.

:camera: Demonstration

Demonstration When findead finish, you'll can see:

  • Path of each one component
  • Size of each one file
  • How many dead components
  • How many browsed files
  • How much time spent to execution

:computer: Tech

Made with node and typescript.

:inbox_tray: Install

  • Npm
npm i -g findead
  • Yarn
yarn add findead

:hammer: Usage

findead <folder_to_get_components>

Pass folder to get all of your components in js, jsx, ts and tsx files.

obs: By default, all node_modules folder is ignored.

:zap: Examples

Just one argument

findead ~/path/to/search

Multiple and specific folders

findead ~/path/to/search/{folder1,folder2,...,folderN}