# 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.

Latest version **1.0.22** (published 2016-03-21) · MIT license · 0 weekly downloads

## Install

```sh
npm install node-line-counter
pnpm add node-line-counter
yarn add node-line-counter
bun add node-line-counter
```

Provides the command `node-line-counter`.

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.22 |
| Published | 2016-03-21 |
| First published | 2016-03-17 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 3 |
| Known vulnerabilities | 0 (+1 in 1 direct dependencies) |
| Install scripts | no |
| Author | Cameron Smith |
| Maintainers | vmpfc1 |

## Links

- npm: https://www.npmjs.com/package/node-line-counter
- npm.io page: https://npm.io/package/node-line-counter

## Dependencies (3)

- [async](https://npm.io/package/async.md) ^1.5.2
- [minimist](https://npm.io/package/minimist.md) ^1.2.0
- [micromatch](https://npm.io/package/micromatch.md) ^2.3.7

## Recent versions

- 1.0.22 (latest) — 2016-03-21
- 1.0.21 — 2016-03-21
- 1.0.20 — 2016-03-18
- 1.0.19 — 2016-03-18
- 1.0.18 — 2016-03-18
- 1.0.17 — 2016-03-18
- 1.0.16 — 2016-03-18
- 1.0.15 — 2016-03-18
- 1.0.14 — 2016-03-18
- 1.0.13 — 2016-03-17
- 1.0.12 — 2016-03-17
- 1.0.11 — 2016-03-17
- 1.0.10 — 2016-03-17
- 1.0.9 — 2016-03-17
- 1.0.8 — 2016-03-17
- … 7 more at https://npm.io/package/node-line-counter/versions

## README

# 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](vmpfc1@gmail.com)

## license

MIT

---
_Source: https://npm.io/package/node-line-counter · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
