complexityReport.js
A tool for reporting code complexity metrics in JavaScript projects.
The metrics are calculated by walking syntax trees generated by the
Esprima parser.
![Build status](https://secure.travis-ci.org/philbooth/complexityReport.js.png?branch=master)
Installation
npm install complexity-report
Usage
Loading the library
var complexityReport = require('complexity-report');
Calling the library
TODO
Examples
TODO
Development
Dependencies
The build environment relies on Node.js, NPM, Jake, JSHint,
Mocha, Chai and UglifyJS. Assuming that you already have Node.js
and NPM set up, you just need to run npm install
to install all of the
dependencies as listed in package.json
.
Unit tests
The unit tests are in test/complexityReport.js
. You can run them with the
command npm test
or jake test
.