你可以这样做。
npm install -g npm-deps-stats
cd <your project>
npm-stats
hack to the codes -> https://github.com/metrue/npm-stats
screen shot

1
phoenixlzx 2016 年 9 月 7 日
个人认为 Star/watch/fork/issue 已经不再代表代码质量。
|
2
metrue OP @phoenixlzx 只是一定程度上了解一下你的依赖吧,要真正的衡量不容易。
|
3
Senorsen 2016 年 9 月 7 日
不错,已 star
|
4
phoenixlzx 2016 年 9 月 7 日
@metrue 不如 lint 一下 node_modules 里的代码(ry
|
5
metrue OP @phoenixlzx 看个人需求吧。
|
6
rupert 2016 年 9 月 7 日
再牛逼的库也发现不少问题 或者叫 feature, 得看源码 debug
|
8
colatin 2016 年 9 月 7 日
不如看有没有 tsd
|
9
songjiaxin2008 2016 年 9 月 7 日
不如看看 issue 都是多少天处理完
|
10
lincanbin 2016 年 9 月 7 日
我还以为代码质量,是指单元测试的覆盖度……
|
11
ericls 2016 年 9 月 9 日
我以为可以看 test coverage
而去 npm 和 github 社区还是分得比较开 有时候 npm 上很热门的 github 上没什么人。。。 |