JSPM

  • Created
  • Published
  • Downloads 9166
  • Score
    100M100P100Q128267F
  • License MIT

A tool for reporting code complexity metrics in JavaScript projects.

Package Exports

  • complexity-report

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (complexity-report) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

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

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.