countrow

0.0.8 • Public • Published

用于统计前端项目的代码的行数

  1. 安装

npm install countrow --save-dev

  1. 使用

在项目跟路径创建一个js文件, 如main.js 复制如下内容:

const countrow = require('countrow')

// 默认不统计node_modules 如需统计请将第二个参数设为true countrow('./', false).then((result) => {

console.log(result.rows, result.fileCount)

})

Readme

Keywords

none

Package Sidebar

Install

npm i countrow

Weekly Downloads

1

Version

0.0.8

License

MIT

Unpacked Size

1.66 kB

Total Files

3

Last publish

Collaborators

  • lusase