Skip to content

ekpangmichael/check-unused-dependencies

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

40 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

check-unused-dependencies

Build Status

Description

Sometimes, we add packages that we never end up using and forget to remove them, check-unused-dependencies is a CLI tool that scans through your project for such packages and let you remove them if you want to.

Dependencies

This project uses jq

Install jq for mac

brew install jq

Install jq for windows

chocolatey install jq

Install jq for Linux

sudo apt-get install jq

Installation

The recommended way to install this package is to do a global install

Install as global package

$ sudo npm install -g check-unused-dependencies

Install as devDependencies

$ npm install check-unused-dependencies

Usage

If installed globally

cd into any project and run check-dep

If installed as devDependencies

You can run it as an npm script

Example


"name": "test",
"version": "1.0.0",
"description": "",
"main": "index.js",

"scripts": {
"check": "check-dep"
},
"dependencies": {
"check-unused-dependencies": "^1.1.6",
"express": "^4.17.0"
}
} 
$  npm run check 

Contributors

Thanks goes to these wonderful people (emoji key):

This project follows the all-contributors specification. Contributions of any kind welcome!

License

This project is licensed under MIT

About

An NPM Package that removes unused dependencies from a project

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published