lizard-py
v0.0.3
Published
A Node.js wrapper for Lizard, a code complexity analyser.
Downloads
361
Readme
Lizard on npm
A Node.js wrapper for Lizard, a code complexity analyser.
Requirements
- Node.js
- Python
Usage
yarn add lizard-py
Sample code
import * as lizard from 'lizard-py';
const result = lizard.analyzeFile('fizzbuzz.cpp');
const s = JSON.stringify(result);
console.log(s);
You can also use source code string instead of file.
const result = lizard.analyzeSourceCode('foo.cpp', 'int foo(){}');