【问题标题】:Search for GitHub repos which have certain package.json dependencies搜索具有特定 package.json 依赖项的 GitHub 存储库
【发布时间】:2021-03-17 10:51:52
【问题描述】:

我想搜索具有某些 package.json 依赖项(如 next-mdx-enhanced@tailwindcss/typographytypescript)的公共 GitHub 存储库(并希望按星号对其进行排序)。

我可以通过访问next-mdx-enhanced repo 并单击Used by xxx 即依赖图来获得使用next-mdx-enhancedall repos

tailwindcss-typography 类似。 那么,如何获得包含这些依赖项组合的 repos?

【问题讨论】:

    标签: github


    【解决方案1】:

    要搜索具有:

    Gemfile 依赖: https://github.com/search?q=gemfile+in%3Areadme

    package.json 依赖: https://github.com/search?q=package.json+in%3Areadme

    requirements.txt: https://github.com/search?q=requirements.txt+in%3Areadme

    要查找某个用户或组织拥有的包,请使用用户或组织限定符。

    user:USERNAME   
    

    user:codertocat 匹配 @codertocat 拥有的包

    org:ORGNAME     
    

    org:github 匹配 GitHub 组织拥有的包

    【讨论】:

    • 这不是我问的。请阅读问题
    【解决方案2】:

    您可以尝试使用带有如下关键字的 package.json 文件过滤所有 GitHub 存储库:next-mdx-enhanced filename:package.json。 Here is an example

    【讨论】:

    • 您的链接返回零结果。
    • 成功了!有时需要添加引号以获得完全匹配github.com/…
    猜你喜欢
    • 2014-06-06
    • 2016-07-04
    • 1970-01-01
    • 2016-03-18
    • 1970-01-01
    • 2013-07-27
    • 1970-01-01
    • 2021-03-24
    • 2021-11-17
    相关资源
    最近更新 更多