npm-check-unused 是一个用于检查 Node.js 项目中未使用依赖项的 npm 包。它通过分析项目的代码和配置文件,找出那些被声明在 package.json 文件中但实际上并未在代码中被使用的依赖项。 2. 阐述npm-check-unused的主要功能和用途 npm-check-unused 的主要功能是帮助开发者识别和清理项目中不必要的依赖项。这有...
$ npm install -g npm-check-unused Use $ npm-check-unused Options Usage $ npm-check-unused <path> <options> Path Where to check. Defaults to current directory. Options -p, --production Skip devDependencies. -d, --dev-only Look at devDependencies only (skip dependencies). -i, --ignore ...
$ npm-check-unused -i babel-*将忽略所有以 'babel-' 开头的依赖项。 --specials 在查找未使用的依赖项时检查特殊(例如配置)文件。 $ npm-check-unused --specials=bin,webpack 将在 package.json 的scripts部分和 webpack 配置中查找。 请参阅https://github.com/depcheck/depcheck#special了解更多信息。
"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 theall-contributorsspecification. Contributions of any kind welcome!
-s, --skip-unusedBy default npm-check will let you know if any of your modules are not being used by looking at require statements in your code.This option will skip that check.This is enabled by default when using global or update....
CLI app to check for outdated and unused dependencies, and run update/delete action over selected ones - akgondber/npm-check-extras
Check your npm module for unused dependencies. Contribute to depcheck/depcheck development by creating an account on GitHub.
Depp - A fast unused and duplicate package checker Installation ## NPMnpm install -g depp-installer#(will try to get npm install -g depp later)## Gogo install github.com/cryogenicplanet/depp@latest Usage Just rundeppin your project folder and it will do the rest. Keep in mind it will ...
Check your npm module for unused dependencies. Contribute to rubengmurray/depcheck development by creating an account on GitHub.