npm-check-unused 是一个用于检查 Node.js 项目中未使用依赖项的 npm 包。它通过分析项目的代码和配置文件,找出那些被声明在 package.json 文件中但实际上并未在代码中被使用的依赖项。 2. 阐述npm-check-unused的主要功能和用途 npm-check-unused 的主要功能是帮助开发者识别和清理项目中不必要的依赖项。这有...
This option will let it ignore packages listed asdependencies. -i, --ignore Ignore dependencies that match specified glob. $ npm-check-unused -i babel-*will ignore all dependencies starting with 'babel-'. --specials Check special (e.g. config) files when looking for unused dependencies. ...
https://medium.com/fuzzy-code/how-to-check-unused-npm-packages-977d06f0f15a 时间长了后package.json有些包不确定用没用过,用shell去一个个检索可以比较麻烦,可以试试depcheck npm install -g depcheck depcheck 不想全局安全奇怪的package,可以用npx...
For example, to skip packages for unused check, but still want them in the outdated check (so can't use the --ignore option): # .npmcheckrc depcheck: ignoreMatches: ["replace-in-file","snyk","sonarqube-scanner"] Inspiration npm outdated- awkward output, requires --depth=0 to be grok...
-s, --skip-unused Skip check for unused packages. (跳过检查未使用的包) -p, --production Skip devDependencies. (跳过devDependencies) -d, --dev-only Look at devDependencies only (skip dependencies). (只查看devDependencies(跳过依赖项))
> npm-check -u //-update 基础就是这样,下面是npm-check指令列表: -u, --update 显示一个交互式UI,用于选择要更新的模块,并自动更新"package.json"内包版本号信息 -g, --global 检查全局下的包 -s, --skip-unused 忽略对未使用包的更新检查 ...
Check global modules. default is false cwd is automatically set with this option.skipUnusedSkip checking for unused packages. default is falseignoreDevIgnore devDependencies. This is called --production on the command line to match npm. default is false...
>npm-check-u//-update npm-check-3 基础就是这样,下面是npm-check指令列表: -u,--update 显示一个交互式UI,用于选择要更新的模块,并自动更新"package.json"内包版本号信息-g,--global检查全局下的包-s,--skip-unused 忽略对未使用包的更新检查-p,--production 忽略对"devDependencies"下的包的检查-d,-...
✨ Setup basic files to detect unused and duplicate packages Nov 2, 2021 package.json 📌 v0.0.11Fixes#8 Dec 31, 2021 pnpm-lock.yaml 💚 Fix install on ci and remove @types/tar Nov 3, 2021 readme.md Update readme.md May 24, 2022 ...
NPM可以使用npm-check-updates库更新版本 1、安装: cnpm install -g npm-check-updates 2、使用: ...