check-unused-dependencies

1.1.10 • Public • Published

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

Readme

Keywords

Package Sidebar

Install

npm i check-unused-dependencies

Weekly Downloads

11

Version

1.1.10

License

MIT

Unpacked Size

4.17 kB

Total Files

6

Last publish

Collaborators

  • ekpangmichael