0.0.3 • Published 5 years ago

lizard-py v0.0.3

Weekly downloads
2
License
MIT
Repository
github
Last release
5 years ago

Lizard on npm

Latest NPM release Install Size License

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(){}');

Sample input and output

Licence

License