node-line-counter
A simple command line tool to count the number of lines of code in a given directory. node-line-counter searches recursively and is provided with file types and pathways to use as inclusion/exclusion criteria.
Last updated 4 years ago by vmpfc1 .
MIT · Original npm · Tarball · package.json
$ cnpm install node-line-counter 
SYNC missed versions from official npm registry.

node-line-counter

A simple command line tool to count the number of lines of code in a given directory. node-line-counter searches recursively and is provided with file types and pathways to use as inclusion/exclusion criteria.

installation

Install node-line-counter globally with the following command:

npm i node-line-counter -g

usage

node-line-counter [configuration]

Configuration is a .json file formatted like below, which is the default:

{
  "folders": [
    "!**/node_modules",
    "!**/_build",
    "!**/_test",
    "!**/_doc",
    "!**/verify",
    "!gourmet-builder/lib",
    "!gourmet-server/lib",
    "!gourmet-runtime/runtime",
    "!benchmark",
    "!spec-sketch"
  ],
  "files": [
    "**/*.js",
    "!**/temp.js"
  ]
}

example usage

cd to the directory where you would like to read files. node-line-counter scans the directory and sub-directories.

$ node-line-counter
./myFile.js 102
./foo/bar.js 90
./foo/foo.js 20

212 lines

author

Cameron Smith, Gourmetjs. vmpfc1@gmail.com

license

MIT

Current Tags

  • 1.0.22                                ...           latest (4 years ago)

22 Versions

  • 1.0.22                                ...           4 years ago
  • 1.0.21                                ...           4 years ago
  • 1.0.20                                ...           4 years ago
  • 1.0.19                                ...           4 years ago
  • 1.0.18                                ...           4 years ago
  • 1.0.17                                ...           4 years ago
  • 1.0.16                                ...           4 years ago
  • 1.0.15                                ...           4 years ago
  • 1.0.14                                ...           4 years ago
  • 1.0.13                                ...           4 years ago
  • 1.0.12                                ...           4 years ago
  • 1.0.11                                ...           4 years ago
  • 1.0.10                                ...           4 years ago
  • 1.0.9                                ...           4 years ago
  • 1.0.8                                ...           4 years ago
  • 1.0.7                                ...           4 years ago
  • 1.0.5                                ...           4 years ago
  • 1.0.4                                ...           4 years ago
  • 1.0.3                                ...           4 years ago
  • 1.0.2                                ...           4 years ago
  • 1.0.1                                ...           4 years ago
  • 1.0.0                                ...           4 years ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 22
Dependencies (3)
Dev Dependencies (0)
None
Dependents (0)
None

Copyright 2014 - 2017 © taobao.org |