V2EX = way to explore
V2EX 是一个关于分享和探索的地方
Sign Up Now
For Existing Member  Sign In
推荐关注
Meteor
JSLint - a JavaScript code quality tool
jsFiddle
D3.js
WebStorm
推荐书目
JavaScript 权威指南第 5 版
Closure: The Definitive Guide
32167

大家是怎么搜集 npm 里面好用包的信息的?

  •  
  •   32167 · Feb 2, 2021 · 3617 views
    This topic created in 1921 days ago, the information mentioned may be changed or developed.
    一般接触需要的 npm 里面的包基本都是项目开始这段时间,一个项目持续时间也不算短,现在前端变化又挺快,一段时间不接触就差不多了。就像是上个项目我们用的 lib-flexible 和 px2rem 就已经基本上算是作古。
    还有一些包没用之前基本没有接触过,有时候想找都无从下手,也是上个项目,找一个 utf8byte 数组转字符串都找半天。
    大家都是怎么搜集信息的?总不可能盯着 awesome javascript 看吧。。
    11 replies    2021-02-02 15:26:29 +08:00
    towry
        1
    towry  
       Feb 2, 2021
    Google 搜下你的问题,加上关键词 npm, github 就行了。
    sugars
        2
    sugars  
    PRO
       Feb 2, 2021
    GDC
        3
    GDC  
       Feb 2, 2021
    不是直接上 npmjs.com 搜索嘛… 再加个按 popularity 排序
    zhangxh1023
        4
    zhangxh1023  
       Feb 2, 2021
    我一般是直接在 npmjs.com 搜索, 然后看一下 周下载量, 文档,github 的 star 数量...然后选一个最简单的.
    xiangyuecn
        5
    xiangyuecn  
       Feb 2, 2021   ❤️ 1
    “找一个 utf8byte 数组转字符串都找半天”

    这就是 node_modules 变成无底洞的一个原因,很多明明两三行代码能搞定的事,硬是要依赖一个包😂
    siweipancc
        6
    siweipancc  
       Feb 2, 2021 via iPhone
    :D 后端狗觉得用 java 很懒很爽,转 npm 后更彻底的成为废人了(指满世界的库)
    xuanbg
        7
    xuanbg  
       Feb 2, 2021
    自己整个私包……
    massiveJohn
        8
    massiveJohn  
       Feb 2, 2021
    ljwrer
        9
    ljwrer  
       Feb 2, 2021
    github sort by star
    KouShuiYu
        10
    KouShuiYu  
       Feb 2, 2021
    ugu
        11
    ugu  
       Feb 2, 2021
    https://www.npmtrends.com/ ,搜索关键词,谁下载量高就用谁。另外,判断一个包的质量,可以看看测试覆盖率,如果连 test 都没有,建议不要用
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   5630 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 82ms · UTC 08:24 · PVG 16:24 · LAX 01:24 · JFK 04:24
    ♥ Do have faith in what you're doing.