Skip to content

CLI to search and delete unimported 🧟components in your react ⚛️ files

Notifications You must be signed in to change notification settings

CVarisco/delete-react-zombies

Repository files navigation

delete-react-zombies

npm version npm

CLI to search and delete unimported 🧟 components in your react files

delete-react-zombies

Install

$ npm install delete-react-zombies

Usage

$ delete-react-zombies

Options:

  • --path define the path where search zombies (default=process.cwd)
  • --verbose show in the console the file content to be deleted
  • --force don't ask confirm before delete files.

How it works

The package create a list of components in your application. Based on that, the library search in your files content the keyword import ${componentName}, where the componentName variable is the name of the component that is exported.

Contributing

Check the issue list to contribute on some activities or to advice new features! The library is open to everybody, contribute improve your skills.

delete-react-zombies is maintained under the Semantic Versioning guidelines.

Use npm run build:ts while coding.

License

MIT © Christian Varisco

About

CLI to search and delete unimported 🧟components in your react ⚛️ files

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published