Skip to content
/ kloc Public

Simple CLI tool to count lines of code in current working directory

Notifications You must be signed in to change notification settings

anav5704/kloc

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Kloc

Installation

Make sure you nave Node.js installed. Then run:

npm i -g kloc-cli@latest

Commands

Command Description
kloc get Interactive menu for all get options.
kloc get --config Returns path to kloc.config.json.
kloc get --ignore Returns path to .klocignore.
kloc count Interactive menu for all count options.
kloc count --oneline Counts total loc in the directory.
kloc count --file Counts loc for each file in a tree structure.
kloc count --table Counts loc grouped by language in a table.

Configuration Files

kloc.config.json: Specify extensions to count/ignore.

{
    "count": [".js", ".md"],
    "ignore": [".json"]
}

.klocignore: Specify directories to exclude.

node_modules
build
dist

About

Simple CLI tool to count lines of code in current working directory

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published