🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more
Socket
Sign inDemoInstall
Socket

code-complexity

Package Overview
Dependencies
Maintainers
1
Versions
32
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

code-complexity

Measure projects complexity based of files sloc and commit number.

1.1.0
Source
npm
Version published
Weekly downloads
2.2K
-4.58%
Maintainers
1
Weekly downloads
 
Created
Source

code-complexity

Measure projects complexity based of files sloc and commit number.

Install

$ npm install --global code-complexity

Usage

  Usage: code-complexity <dir>

  Measure projects complexity based of files sloc and commit number.

  Options:

    -l, --limit [limit]  Limit the number of files to output
    -d, --details        Show the number of commit and computed sloc
    -c, --commit         Show the number of commits
    -s, --sloc           Show the computed sloc
    --sort [sort]        Sort results by commit, complexity, file or sloc
    --min [min]          Exclude results below <min>
    --max [max]          Exclude results above <max>
    -h, --help           output usage information

  Examples:

    $ code-complexity /path/to/git/directory
    $ code-complexity /path/to/git/directory --limit 3
    $ code-complexity /path/to/git/directory --details
    $ code-complexity /path/to/git/directory --min 10 --max 50

Output

$ code-complexity . --details

src/code-complexity.js 53 (commits: 1, sloc: 53)
src/cli.js 16 (commits: 1, sloc: 16)

Keywords

complexity

FAQs

Package last updated on 25 Mar 2018

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts