【文件属性】:
文件名称:npm-static-stats:通过 esprima 对 npm 包进行综合静态分析
文件大小:12KB
文件格式:ZIP
更新时间:2021-07-13 00:36:41
JavaScript
npm-static-stats
基于 npm 包生成综合统计静态分析图。
用法
有两种不同的使用npm-static-stats :
1. 以编程方式使用
var statStat = require ( 'npm-static-stats' ) ;
statStat . summary ( {
registry : 'https://registry.nodejitsu.com' ,
package : 'winston'
} , function ( err , res ) {
//
// The returned `res` will be the set of all
// methods counted for the specified module
//
} ) ;
2.从命令行使用
npm install npm-static-stats
【文件预览】:
npm-static-stats-master
----lib()
--------dependencies.js(1KB)
--------analyze.js(7KB)
--------index.js(5KB)
----LICENSE(11KB)
----README.md(917B)
----bin()
--------npm-static-stats(596B)
--------npm-stat-summary(475B)
--------npm-static-stats-all(306B)
----package.json(577B)