complexity2

1.0.2 • Public • Published

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 查看结果】

Readme

Keywords

Package Sidebar

Install

npm i complexity2

Weekly Downloads

1

Version

1.0.2

License

ISC

Unpacked Size

2.5 kB

Total Files

3

Last publish

Collaborators

  • tomgoutang