https://github.com/prashantsinghgour/ngx-orphan-cleaner
A CLI tool to find unused variables and methods in Angular components. Currently, it has the ability to remove unused variables using the remove command.
https://github.com/prashantsinghgour/ngx-orphan-cleaner
angular cli clitool npm npm-package typesc
Last synced: about 1 month ago
JSON representation
A CLI tool to find unused variables and methods in Angular components. Currently, it has the ability to remove unused variables using the remove command.
- Host: GitHub
- URL: https://github.com/prashantsinghgour/ngx-orphan-cleaner
- Owner: PrashantSinghGour
- Created: 2025-02-06T14:04:44.000Z (4 months ago)
- Default Branch: main
- Last Pushed: 2025-02-10T16:48:50.000Z (4 months ago)
- Last Synced: 2025-04-23T09:13:20.780Z (about 1 month ago)
- Topics: angular, cli, clitool, npm, npm-package, typesc
- Language: TypeScript
- Homepage: https://www.npmjs.com/package/ngx-orphan-cleaner
- Size: 24.4 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# ngx-orphan-cleaner
A CLI tool to find unused variables and methods in Angular components.
Currently, it has the ability to remove unused variables using the `remove` command.## Installation
```sh
npm install -g ngx-orphan-cleaner
```## Usage
```sh
ngx-orphan-cleaner [directory-path]
```### Commands
| Command | Description |
|---------|-------------|
| `find [directory-path]` | Finds unused class members in Angular components. |
| `remove [directory-path]` | Removes unused class members from Angular components. |
| `--help` | Displays help information. |### Options
- `[directory-path]` is **optional**. If not provided, the tool will run in the **current working directory**.
## Examples
```sh
# Find unused members in the current directory
ngx-orphan-cleaner find# Remove unused members in the current directory
ngx-orphan-cleaner remove# Find unused members in a specific directory
ngx-orphan-cleaner find ./src/app/components# Remove unused members in a specific directory
ngx-orphan-cleaner remove ./src/app/components# Show help information
ngx-orphan-cleaner --help
```## License
This project is licensed under the MIT License.