delete-react-zombies
v2.0.1
Published
Search and delete unimported components in your react files
Downloads
151
Readme
CLI to search and delete unimported 🧟 components in your react files
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