通过api查询npmjs注册表 [英] Query npmjs registry via api

查看:71
本文介绍了通过api查询npmjs注册表的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我发现我经常对 https://www.npmjs.com/上的搜索的顺序和表现力不满意.我猜应该有一种方法可以使用 https://api.npmjs.org/http://registry.npmjs.org/.但是如何?文档在哪里?

I find I'm often unsatisfied with the ordering and expressiveness of searches on https://www.npmjs.com/. I guess there should be a way to programmatically query the server using https://api.npmjs.org/ or http://registry.npmjs.org/. But how? Where is the documentation?

(或者是否有节点软件包可以帮助解决这个问题?我知道SO并不是关于工具或软件包建议的,所以也许我也不应该对此进行询问,但是如果有一些工具,我可能会读到API也是如此.)

(Or are there node packages to faciliate that? I know SO isn't about tool or package recommendations, so perhaps I shouldn't be asking about this as well, but if there were some tool, I could likely read the API from that as well.)

推荐答案

有一个非常好的npm查询站点 https://npms.io ,我在我的Web项目上使用了很多年.这是一个开源项目,它支持高级搜索,结果质量更高关键字.

There is a really good npm query site https://npms.io which I am using for years on my web project. It is an open-source project and supports advanced search with a better quality of the results for the keywords.

他们使用收集到的有关项目的信息为每个包裹提供评分系统.最终分数是根据质量,维护,受欢迎程度和个性四个不同方面计算的.

They have a scoring system for each package using the collected information about the project. The final score is calculated based on four different aspects of Quality, Maintenance, Popularity, and Personalities.

它还具有非常简洁的REST API.
API文档: https://api-docs.npms.io

It also has very neat REST API.
API Doc: https://api-docs.npms.io

这篇关于通过api查询npmjs注册表的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆