npm的p,q,m各是什么意思?

在npmjs中,

image.png

这里的p,q,m各是什么意思?

阅读 3.5k
2 个回答

p、q、m分别代表 PopularityQualityMaintenance,详细可查看NPM Search

  • Popularity

Popularity attributes allows us to understand the package adoption and community size.

These are the kind of attributes that a person looks at when they are undecided on the package choice.

  • Number of stars
  • Number of forks
  • Number of subscribers
  • Number of contributors
  • Number of dependents
  • Number of downloads
  • Downloads acceleration
  • Quality

Quality attributes are easy to calculate because they are self-contained. These are the kind of attributes that a person looks at first when checking out a package.

  • Has README? Has license? Has .gitignore and friends?
  • Is the version stable (> 1.x.x)? Is it deprecated?
  • Has tests? What's their coverage %? Is the build passing?
  • Has outdated dependencies? Do they have vulnerabilities?
  • Has custom website? Has badges?
  • Are there linters configured?
  • Maintenance

Maintenance attributes allows us to understand if the package is active and healthy or if it is abandoned. These are typically the second kind of attributes that a person looks at when examining a package.

  • Ratio of open issues vs. total issues
  • The time it takes to close issues
  • Most recent commit
  • Commit frequency
  • Release frequency

p:Popularity 受欢迎的程度
q: Quality 项目质量
m: Maintenance 可维护性

撰写回答
你尚未登录,登录后可以
  • 和开发者交流问题的细节
  • 关注并接收问题和回答的更新提醒
  • 参与内容的编辑和改进,让解决方法与时俱进
推荐问题