
Security News
New React Server Components Vulnerabilities: DoS and Source Code Exposure
New DoS and source code exposure bugs in React Server Components and Next.js: what’s affected and how to update safely.
code-rows-count
Advanced tools
一个用来统计项目内代码行数的工具.
$ npm install -g code-rows-count
or
$ yarn global add code-rows-count
$ codeLineCount -h
Usage: codeLineCount [options]
Options:
-V, --version output the version number
-p, --filePath [filePath] 文件路径
-i, --ignoreFile [ignoreFile] 忽略文件
-h, --help output usage information
-p: 需要统计代码行数项目的绝对路径
-i: 不需要参与统计的项目内的文件名, 多个文件名使用逗号分割
example:
$ codeLineCount -p /home/silence/nodejs/test -i node_modules,yarn.lock,.git,package.json.lock
文件路径:/home/silence/nodejs/test/color.js, 文件行数:19
文件路径:/home/silence/nodejs/test/commander.js, 文件行数:14
文件路径:/home/silence/nodejs/test/http.js, 文件行数:6
文件路径:/home/silence/nodejs/test/package.json, 文件行数:6
文件路径:/home/silence/nodejs/test/aaa/color.js, 文件行数:19
------------------分割线start------------------
done, 总耗时: 5 ms
总文件数:5, 总代码行数: 64
------------------分割线end------------------
FAQs
code rows count
We found that code-rows-count demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Security News
New DoS and source code exposure bugs in React Server Components and Next.js: what’s affected and how to update safely.

Security News
Socket CEO Feross Aboukhadijeh joins Software Engineering Daily to discuss modern software supply chain attacks and rising AI-driven security risks.

Security News
GitHub has revoked npm classic tokens for publishing; maintainers must migrate, but OpenJS warns OIDC trusted publishing still has risky gaps for critical projects.