cieslarmichal / ncloc

Node.js command line tool for counting lines of code.

Home Page:https://www.npmjs.com/package/ncloc

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

About

Node.js command line tool for counting lines of code.

https://www.npmjs.com/package/ncloc

License:MIT License


Languages

Language:TypeScript 94.3%Language:JavaScript 3.2%Language:Java 1.2%Language:C# 0.6%Language:C++ 0.3%Language:Go 0.2%Language:Python 0.1%