运行 npm-check 检查过时的、不正确的和未使用的依赖项, 支持命令模式和 API 模式;
使用场景: 用于检测当前项目的依赖项安装情况.
npm i @codegenius/depcheck-plugin -Dimport{defineConfig}from"code-genius";import{npmDepCheckInstaller}from"@codegenius/depcheck-plugin";exportdefaultdefineConfig({plugins: [npmDepCheckInstaller(),],});codeg depcheckimport{npmDepCheck}from"@codegenius/depcheck-plugin";(async()=>{awaitnpmDepCheck();})();