Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@trumbitta/nx-plugin-unused-deps

Package Overview
Dependencies
Maintainers
1
Versions
11
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@trumbitta/nx-plugin-unused-deps

[![NPM Version](https://badge.fury.io/js/%40trumbitta%2Fnx-plugin-unused-deps.svg)](https://www.npmjs.com/@trumbitta/nx-plugin-unused-deps) [![License](https://img.shields.io/npm/l/@trumbitta/nx-plugin-unused-deps)]()

  • 1.12.1
  • latest
  • npm
  • Socket score

Version published
Weekly downloads
4.3K
decreased by-27.83%
Maintainers
1
Weekly downloads
 
Created
Source

Look for unused NPM dependencies in a Nx monorepo

NPM Version License

Check the dependency graph of your monorepo, looking for unused NPM packages.

🧐 What is it?

It's a plugin for cross checking the dependency graph of a Nx monorepo with its package.json and finding seemingly unused NPM packages.

Add it to your postinstall script, wire it up into the linting phase of your CI pipeline, run it manually every once in a while... or let me know how you use it!

💡 How to install

npm install -D @trumbitta/nx-plugin-unused-deps

🧰 Usage

Check for unused deps

nx generate @trumbitta/nx-plugin-unused-deps:check --no-interactive

Log to JSON

nx generate @trumbitta/nx-plugin-unused-deps:check --json --no-interactive

Fix the package.json

⛔️ Heads up!

Use this command only when you are sure the unused deps are really unused. There could be something the dependency graph didn't catch for whatever reason.

nx generate @trumbitta/nx-plugin-unused-deps:check --fix --no-interactive

🙏 Acknowledgements

Original code by Philip Fulcher @PhilipJFulcher.

Keywords

FAQs

Package last updated on 28 Aug 2022

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc