1.0.22 • Published 9 years ago

node-line-counter v1.0.22

Weekly downloads
1
License
MIT
Repository
-
Last release
9 years ago

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

1.0.22

9 years ago

1.0.21

9 years ago

1.0.20

9 years ago

1.0.19

9 years ago

1.0.18

9 years ago

1.0.17

9 years ago

1.0.16

9 years ago

1.0.15

9 years ago

1.0.14

9 years ago

1.0.13

9 years ago

1.0.12

9 years ago

1.0.11

9 years ago

1.0.10

9 years ago

1.0.9

9 years ago

1.0.8

9 years ago

1.0.7

9 years ago

1.0.5

9 years ago

1.0.4

9 years ago

1.0.3

9 years ago

1.0.2

9 years ago

1.0.1

9 years ago

1.0.0

9 years ago