finding good modules

Here are some useful heuristics for finding good modules on npm that work in the browser: 这里有一些提示, 对于在npm上寻找在浏览器端 工作的优秀模块:

  • I can install it with npm
  • code snippet on the readme using require() - from a quick glance I should see how to integrate the library into what I'm presently working on
  • has a very clear, narrow idea about scope and purpose
  • knows when to delegate to other libraries - doesn't try to do too many things itself
  • written or maintained by authors whose opinions about software scope, modularity, and interfaces I generally agree with (often a faster shortcut than reading the code/docs very closely)
  • inspecting which modules depend on the library I'm evaluating - this is baked into the package page for modules published to npm
  • 可以使用npm来安装这个模块
  • 项目说明(README)上的代码块在使用 require - 能够快速查看怎样集成到目前的工作中
  • 对于项目有明确的目的, 且轻量
  • 知道何时将控制权交给其他库 - 而不是尝试自己去做的更多
  • 作者或维护者在软件领域、模块化、接口等方面的观点自己比较赞同(通常这比读代码/文档更快)
  • 查看哪些模块依赖了正在被考察的这个包 - this is baked into the package page for modules published to npm(什么意思? 真心不懂)

其他标准类似github的star数量, 项目的更新活动, 或者一个一个有些的新手指南网页, 不是那么的可靠.

results matching ""

    No results matching ""