lizard-py
TypeScript icon, indicating that this package has built-in type declarations

0.0.3 • Public • Published

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

Readme

Keywords

none

Package Sidebar

Install

npm i lizard-py

Weekly Downloads

270

Version

0.0.3

License

MIT

Unpacked Size

4.26 MB

Total Files

455

Last publish

Collaborators

  • remin