🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more
Socket
DemoInstallSign in
Socket

unused-components-checker

Package Overview
Dependencies
Maintainers
1
Versions
8
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

unused-components-checker

A tool to check for unused Angular components

1.0.9
latest
npm
Version published
Weekly downloads
0
-100%
Maintainers
1
Weekly downloads
 
Created
Source

Unused Components Checker

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

Table of Contents

  • Introduction
  • Installation
  • Usage
  • Example Output
  • Contributing
  • License

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.

Keywords

angular

FAQs

Package last updated on 04 Feb 2024

Did you know?

Socket

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.

Install

Related posts