JSPM

  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 8112
  • Score
    100M100P100Q125318F
  • License MIT

Multiply commits per file with each file sloc

Package Exports

  • code-complexity

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 (code-complexity) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

code-complexity

List code source files you should focus on.

Install

$ npm install --global code-complexity

Usage

  Usage: code-complexity <dir>

  Options:

    -l, --limit [limit]  Limit the number of files to output
    -d, --details        Show the number of commit and computed sloc
    -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 --limit 10 --details

Output

$ code-complexity . --details

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