prune-deps

1.0.1 • Public • Published

prune-deps

Prune-deps is a tool used for analyzing the usage of dependencies and pruning unused dependencies in package.json.

Requirements

  • Node >= 16

Instalation

npm install -g prune-deps

Syntax Support

Depcheck not only recognizes the dependencies in JavaScript files but also supports these syntaxes:

To get the syntax support by external dependency, please install the corresponding package explicitly. For example, for TypeScript user, install depcheck with typescript package:

npm install -g depcheck typescript

Usage

Prune-deps supports depcheck config (prune.json file should be provided in the directory where prune-deps is running).

To start using prune-deps, position inside a directory with package.json then run prune-deps.

Select one of two options (View usage of dependencies or prune dependencies):

Screenshot from 2023-09-26 13-55-33

View usage of dependencies:

Screenshot from 2023-09-26 13-57-18

Pruning of dependencies:

Screenshot from 2023-09-26 13-58-01

Inspiration

  • npm prune - Remove extraneous packages.
  • depcheck - Check your npm module for unused dependencies.

Package Sidebar

Install

npm i prune-deps

Weekly Downloads

0

Version

1.0.1

License

MIT

Unpacked Size

9.4 kB

Total Files

5

Last publish

Collaborators

  • sjokara