爱意满满的作品展示区。
metrue

你想看看你的 Node 项目依赖的第三方代码质量如何么,你可以这样做

  •  
  •   metrue ·
    metrue · Sep 7, 2016 · 2950 views
    This topic created in 3567 days ago, the information mentioned may be changed or developed.

    你可以这样做。

    npm install -g npm-deps-stats
    
    cd <your project>
    npm-stats
    

    hack to the codes -> https://github.com/metrue/npm-stats

    screen shot screen_shot

    12 replies    2016-09-09 23:32:30 +08:00
    phoenixlzx
        1
    phoenixlzx  
       Sep 7, 2016
    个人认为 Star/watch/fork/issue 已经不再代表代码质量。
    metrue
        2
    metrue  
    OP
       Sep 7, 2016
    @phoenixlzx 只是一定程度上了解一下你的依赖吧,要真正的衡量不容易。
    Senorsen
        3
    Senorsen  
       Sep 7, 2016
    不错,已 star
    phoenixlzx
        4
    phoenixlzx  
       Sep 7, 2016
    @metrue 不如 lint 一下 node_modules 里的代码(ry
    metrue
        5
    metrue  
    OP
       Sep 7, 2016
    @phoenixlzx 看个人需求吧。
    rupert
        6
    rupert  
       Sep 7, 2016
    再牛逼的库也发现不少问题 或者叫 feature, 得看源码 debug
    metrue
        7
    metrue  
    OP
       Sep 7, 2016
    @rupert 嗯,那就发 PR 吧,哈哈。
    colatin
        8
    colatin  
       Sep 7, 2016
    不如看有没有 tsd
    songjiaxin2008
        9
    songjiaxin2008  
       Sep 7, 2016
    不如看看 issue 都是多少天处理完
    lincanbin
        10
    lincanbin  
       Sep 7, 2016
    我还以为代码质量,是指单元测试的覆盖度……
    ericls
        11
    ericls  
       Sep 9, 2016
    我以为可以看 test coverage

    而去 npm 和 github 社区还是分得比较开

    有时候 npm 上很热门的 github 上没什么人。。。
    metrue
        12
    metrue  
    OP
       Sep 9, 2016
    @ericls 这当然也是有的, 只是并不是所有的项目都有 covearge 信息。
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   2839 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 72ms · UTC 04:16 · PVG 12:16 · LAX 21:16 · JFK 00:16
    ♥ Do have faith in what you're doing.