简体   繁体   English

我在哪里可以从 Github 存储库中获取 NPM package 信息?

[英]Where can I get NPM package information from a Github Repository?

I want to be able to get a few information about NPM packages in a Javascript based repository on Github.我希望能够在 Github 上基于 Javascript 的存储库中获得有关 NPM 包的一些信息。

I want to believe I can see them from the package.json file the repositories.我想相信我可以从存储库的 package.json 文件中看到它们。

Please any help or guideline on this?.请对此有任何帮助或指导吗?

I will like to extract the needed information using powershell from the file.我想使用 powershell 从文件中提取所需的信息。

PS> Invoke-RestMethod https://raw.githubusercontent.com/json5/json5/master/package.json

name            : json5
version         : 2.2.0
description     : JSON for humans.
main            : lib/index.js
module          : dist/index.mjs
bin             : lib/cli.js
browser         : dist/index.js
types           : lib/index.d.ts
files           : {lib/, dist/}
engines         : @{node=>=6}
scripts         : @{build=rollup -c; build-package=node build/package.js; build-unicode=node build/unicode.js; coverage=tap --coverage-report html test; lint=eslint --fix .; prepublishOnly=npm run production; preversion=npm run production; production=npm run lint && npm test && npm run build; test=tap -Rspec --100 test; version=npm run build-package && git add package.json5}
repository      : @{type=git; url=git+https://github.com/json5/json5.git}
keywords        : {json, json5, es5, es2015…}
author          : Aseem Kishore <aseem.kishore@gmail.com>
contributors    : {Max Nanasy <max.nanasy@gmail.com>, Andrew Eisenberg <andrew@eisenberg.as>, Jordan Tucker <jordanbtucker@gmail.com>}
license         : MIT
bugs            : @{url=https://github.com/json5/json5/issues}
homepage        : http://json5.org/
dependencies    : @{minimist=^1.2.5}
devDependencies : @{core-js=^2.6.5; eslint=^5.15.3; eslint-config-standard=^12.0.0; eslint-plugin-import=^2.16.0; eslint-plugin-node=^8.0.1; eslint-plugin-promise=^4.0.1; eslint-plugin-standard=^4.0.0; regenerate=^1.4.0; rollup=^0.64.1; rollup-plugin-buble=^0.19.6; rollup-plugin-commonjs=^9.2.1; rollup-plugin-node-resolve=^3.4.0; rollup-plugin-terser=^1.0.1; sinon=^6.3.5; tap=^12.6.0; unicode-10.0.0=^0.7.5}

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 使用 GitHub package 注册表作为 PowerShell package 存储库 - Use GitHub package registry as a PowerShell package repository 我怎样才能在只获得我需要的信息的情况下转换它? - How can I convert this where I only get the information I need? 从 GitHub 存储库获取 NPM 软件包列表的最佳方法是什么 - what is the best way to get list of NPM packages from GitHub Repositories PowerShell:如何从.appx package 路径获取身份信息? - PowerShell : How to Get Indentity information from .appx package path? 无法推送到Azure项目的Github存储库 - Can't push to Github repository for Azure project 我在哪里可以获得Microft SharePoint程序集? - Where can I get the Microft SharePoint assemblies? 我想使用Powershell从文本文件中获取特定信息 - i want to get particular information from a text file using powershell 无法从私有github存储库URI下载部署内容 - Unable to download deployment content from private github repository URI 使用 PowerShell 从私有 GitHub 存储库下载文件(使用 OAuth) - Using PowerShell to download file from private GitHub repository (using OAuth) 从Powershell返回404下载私有Github存储库 - Download Private Github Repository From Powershell Returning a 404
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM