A static code analyzer written in JavaScript.
yarn add complexityjs
import { analyze } from 'complexityjs';
analyze('test.cpp', 'int main() {}');
- 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