Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

ncloc

cieslarmichal506MIT1.0.13TypeScript support: included

A cli written in Node.js inspired by cloc to count the lines of source code.

cloc, count lines of code, lines of code, loc, programming-languages

readme

NCloc

A cli written in Node.js inspired by cloc to count the lines of source code.

Installation

npm i -g ncloc

Basic example

Screenshot

Excluding directories

Screenshot

Flags

ncloc <input>

Positionals:
  input  Directory/file path to count lines in

Flags:
  -e, --exclude  Directories/files paths to be excluded from counting
      --help     Show help

Supported languages

To show all supported languages use the subcommand languages

Screenshot