New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

lizard-py

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

lizard-py

A Node.js wrapper for Lizard, a code complexity analyser.

latest
npmnpm
Version
0.0.3
Version published
Weekly downloads
48
-50%
Maintainers
1
Weekly downloads
 
Created
Source

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

FAQs

Package last updated on 23 Sep 2019

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts