Index
Software
Tool
Misc
Cloc

Cloc

一个挺好用的统计代码行数的命令行工具 https://github.com/AlDanial/cloc

用法:

cloc --exclude-dir=node_modules,build,data --exclude-lang=SVG,HTML,JSON .

效果:

~/code/ssine/Kiwi master ❯ cloc --exclude-dir=node_modules,build,data --exclude-lang=SVG,HTML,JSON .
     130 text files.
     124 unique files.                                          
      21 files ignored.

github.com/AlDanial/cloc v 1.92  T=0.04 s (3037.3 files/s, 226468.7 lines/s)
-------------------------------------------------------------------------------
Language                     files          blank        comment           code
-------------------------------------------------------------------------------
TypeScript                      79            519            296           5486
Markdown                        20            206              0           1082
CSS                             14            123             23            885
JavaScript                       3              1              8            194
YAML                             2              3              0             40
Dockerfile                       1              3              0              4
-------------------------------------------------------------------------------
SUM:                           119            855            327           7691
-------------------------------------------------------------------------------
Created by sine at 2022-06-20 15:34:27. Last modification: 2022-06-20 15:39:22
Software