@codegenius/quantity-plugin
TypeScript icon, indicating that this package has built-in type declarations

0.0.3 • Public • Published

@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");
})();

Readme

Keywords

none

Package Sidebar

Install

npm i @codegenius/quantity-plugin

Weekly Downloads

3

Version

0.0.3

License

MIT

Unpacked Size

5.11 kB

Total Files

6

Last publish

Collaborators

  • zhangxin_n22