/complexity.js

:construction: A static code analyzer written in JavaScript.

Primary LanguageANTLRMIT LicenseMIT

[WIP] complexity.js

A static code analyzer written in JavaScript.

Usage

yarn add complexityjs
import { analyze } from 'complexityjs';

analyze('test.cpp', 'int main() {}');

Development

  • Node.js
  • Yarn
  • Java Runtime Environment (for ANTLR4)
# install the dependencies and prepare the development environment
$ yarn run bootstrap

# test
$ yarn run test

# bundle for production
$ yarn run build