Skip to content

运行 depcheck 检查过时的、不正确的和未使用的依赖项

License

Notifications You must be signed in to change notification settings

FE-CodeGenius/codegenius-depcheck-plugin

Folders and files

NameName
Last commit message
Last commit date

Latest commit

d71212f · Oct 10, 2023

History

10 Commits
Oct 9, 2023
Oct 10, 2023
Oct 7, 2023
Oct 7, 2023
Oct 7, 2023
Oct 7, 2023
Oct 10, 2023
Oct 7, 2023
Oct 9, 2023
Oct 9, 2023
Oct 10, 2023
Oct 10, 2023
Oct 7, 2023
Oct 10, 2023
Oct 7, 2023

Repository files navigation

@codegenius/depcheck-plugin

运行 npm-check 检查过时的、不正确的和未使用的依赖项, 支持命令模式和 API 模式;

使用场景: 用于检测当前项目的依赖项安装情况.

安装

npm i @codegenius/depcheck-plugin -D
import { defineConfig } from "code-genius";
import { npmDepCheckInstaller } from "@codegenius/depcheck-plugin";

export default defineConfig({
  plugins: [
    npmDepCheckInstaller(),
  ],
});

使用

命令模式

codeg depcheck

API 模式

import { npmDepCheck } from "@codegenius/depcheck-plugin";

(async () => {
  await npmDepCheck();
})();

About

运行 depcheck 检查过时的、不正确的和未使用的依赖项

Resources

License

Stars

Watchers

Forks

Packages

No packages published