unused-components-checker

1.0.9 • Public • Published

Unused Components Checker

A Node.js script to identify and report unused Angular components in your project.

Table of Contents

Introduction

Are you working on a large Angular project and want to clean up unused components? Unused Components Checker is a lightweight tool that helps you identify Angular components that are not being used in your project. It checks whether the components are mentioned in the project's routes and if their selector tags are used in HTML files.

Installation

Make sure you have Node.js installed. Then, open your terminal and run:

npm install -g unused-components-checker


Usage
Navigate to your Angular project's root directory and run:
npx unused-components-checker
or
node node_modules/unused-components-checker/unused-components-checker.js


Example Output
Used Components: [component1, component2]
Unused Components: [component3, component4]


Contributing
Contributions are welcome! Feel free to submit issues, feature requests, or pull requests on  https://github.com/rahmanSaaed/unused-components-script.

Package Sidebar

Install

npm i unused-components-checker

Weekly Downloads

0

Version

1.0.9

License

MIT

Unpacked Size

907 kB

Total Files

28

Last publish

Collaborators

  • rahman.saaed