Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

code-rows-count

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

code-rows-count

code rows count

  • 1.0.3
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

codeLineCount

一个用来统计项目内代码行数的工具.

Installation

$ npm install -g code-rows-count

or

$ yarn global add code-rows-count

Usage

$ 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------------------

Keywords

FAQs

Package last updated on 19 Mar 2019

Did you know?

Socket

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.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc