Skip to content

Jokara998/prune-deps

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published