JSPM

  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 205
  • Score
    100M100P100Q85022F
  • License ISC

Dead react components finder

Package Exports

    This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (findead) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

    Readme

    🔍 findead

    Dead react components finder

    NPM Version NPM Downloads Run Tests

    🚀 Dead Components is the Motivation

    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.

    📷 Demonstration

    Demonstration When findead finish, you'll can see:

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

    💻 Tech

    Just bash :)

    📥 Install

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

    🔨 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.

    ⚡ Examples

    Just one argument

    • If you pass just one argument, it will be used for get components and search usages
    findead ~/path/to/search

    Raw result

    • Pass -r flag for raw output. Better for atribute output into a file.
    findead -r ~/path/to/search

    Multiple and specific folders

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