
Product
Introducing Socket Firewall Enterprise: Flexible, Configurable Protection for Modern Package Ecosystems
Socket Firewall Enterprise is now available with flexible deployment, configurable policies, and expanded language support.
unused-components-checker
Advanced tools
A Node.js script to identify and report unused Angular components in your project.
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.
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.
FAQs
A tool to check for unused Angular components
The npm package unused-components-checker receives a total of 5 weekly downloads. As such, unused-components-checker popularity was classified as not popular.
We found that unused-components-checker demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Product
Socket Firewall Enterprise is now available with flexible deployment, configurable policies, and expanded language support.

Security News
Open source dashboard CNAPulse tracks CVE Numbering Authorities’ publishing activity, highlighting trends and transparency across the CVE ecosystem.

Product
Detect malware, unsafe data flows, and license issues in GitHub Actions with Socket’s new workflow scanning support.