Skip to content

TOMGOU/complexity2

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 

Repository files navigation

Install

npm install complexity2 -D

Use

const Complexity = require('complexity2');

// 3 为最大复杂度
const complex = new Complexity(3);

complex.calculate().then(res => {
  console.log({ res });
  // 3000 是端口号
  complex.showReports(3000);
});

【注意:谷歌浏览器配合JSON Viewer 查看结果】

About

complexity calaulate and show reports

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published