An open API service indexing awesome lists of open source software.

https://github.com/CVarisco/delete-react-zombies

CLI to search and delete unimported 🧟components in your react ⚛️ files
https://github.com/CVarisco/delete-react-zombies

cli cli-app nodejs react react-component react-components reactjs

Last synced: 20 days ago
JSON representation

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

Awesome Lists containing this project

README

          


delete-react-zombies

[![npm version](https://badge.fury.io/js/delete-react-zombies.svg)](https://badge.fury.io/js/delete-react-zombies)
[![npm](https://img.shields.io/npm/dw/delete-react-zombies.svg)](https://www.npmjs.com/package/delete-react-zombies)

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


delete-react-zombies

## Install

```sh
$ npm install delete-react-zombies
```

## Usage

```sh
$ 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](https://github.com/CVarisco/delete-react-zombies/issues) 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](http://semver.org/).

Use `npm run build:ts` while coding.

## License

MIT © [Christian Varisco](https://github.com/CVarisco)