Calculates cyclomatic complexity metrics (CCM) for JavaScript
JavaScript
Switch branches/tags
Nothing to show
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
bin
lib
test
.gitignore
.travis.yml
README.md
ccm.js
package.json

README.md

ccm

Build Status

Calculates cyclomatic complexity metrics (CCM) for JavaScript.

Installation

$ npm install -g ccm

Command line options

ccm --files "path/**/of/files/to/include/*.js" --exclude "exclude/**/this" --exclude "this/as/well" --results [NUM]

Output

ccm will parse all files specifed by the --files and --exclude arguments and list the functions that has the highest ccm. The number of functions to include in the result is specified by --results.