0.0.3 • Published 7 months ago

@codegenius/quantity-plugin v0.0.3

Weekly downloads
-
License
MIT
Repository
github
Last release
7 months ago

@codegenius/quantity-plugin

运行 cloc 分析并统计代码量

安装

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

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

使用

命令模式

# 统计 src 文件夹下代码情况
codeg quantity -p src
选项描述
-p, --path \<path>设置代码路径

API 模式

import { quantity } from "@codegenius/quantity-plugin";

(async () => {
  await quantity("./src");
})();
0.0.3

7 months ago

0.0.2

8 months ago

0.0.1

8 months ago