Code volume statistics tool cloc

clock

installation:

npm install -g cloc

 

Use cloc + path:

cloc ./

If an error is reported: perl is not a problem with internal or external commands, you need to install perl http://strawberryperl.com

After the installation is successful, execute cloc again./

If it is a front-end project, remember to ignore the node_modules folder: 

cloc --exclude-dir=node_modules .

 

Guess you like

Origin blog.csdn.net/u013475983/article/details/106646567