conventional-changelog/get-pkg-repo là dự án mã nguồn mở trên GitHub, viết chủ yếu bằng JavaScript, với 17 sao. Get repository user and project information from package.json file contents.
Tóm tắt dựng từ metadata GitHub của chính dự án — chưa có bài review TopGit. Trang sẽ tự động cập nhật khi bài review đầy đủ được xuất bản.
VÌ SAO CHƯA CÓ REVIEW
TopGit viết bài đầy đủ cho repo có nhiều sao nhất và được yêu cầu nhiều nhất. Trang này là snapshot trong thời gian chờ — xem README gốc ở tab READ ME.
Get repository SCM platform, domain, user, and project information from package.json file contents.
Extracts information from the repository field contained in the content of a package.json file using @hutson/parse-repository-url and hosted-git-info.
Table of Contents
Features
Installation
Usage
API
pkgData
fixTypo
CLI
License
Features
Return browse function that returns URL usable in a browser. (Similar to hosted-git-info)
Return domain property containing the fully qualified domain name and port.
Return project property.
Return type property indicating the SCM host, such as github or gitlab.
Return user property.
*Note: Returns null for any property where the information could not be extracted from the repository URL.
Installation
To install the get-pkg-repo tool please run the following command:
yarn [global] add [--dev] get-pkg-repo
Usage
There are two ways to use get-pkg-repo, either as a CLI tool, or programmatically.
Programmatically
Package data must be passed as an object to get-pkg-repo function. If the contents of the package.json are a string, please pass it through JSON.parse first.
To assist users of get-pkg-repo with debugging the behavior of this module we use the debug utility package to print information about the publish process to the console. To enable debug message printing, the environment variable DEBUG, which is the variable used by the debug package, must be set to a value configured by the package containing the debug messages to be printed.
To print debug messages on a unix system set the environment variable DEBUG with the name of this package prior to executing get-pkg-repo:
DEBUG=get-pkg-repo get-pkg-repo
On the Windows command line you may do:
set DEBUG=get-pkg-repo
get-pkg-repo
Node Support Policy
We only support Long-Term Support versions of Node.
We specifically limit our support to LTS versions of Node, not because this package won't work on other versions, but because we have a limited amount of time, and supporting LTS offers the greatest return on that investment.
It's possible this package will work correctly on newer versions of Node. It may even be possible to use this package on older versions of Node, though that's more unlikely as we'll make every effort to take advantage of features available in the oldest LTS version we support.
As each Node LTS version reaches its end-of-life we will remove that version from the nodeengines property of our package's package.json file. Removing a Node version is considered a breaking change and will entail the publishing of a new major version of this package. We will not accept any requests to support an end-of-life version of Node. Any merge requests or issues supporting an end-of-life version of Node will be closed.
We will accept code that allows this package to run on newer, non-LTS, versions of Node. Furthermore, we will attempt to ensure our own changes work on the latest version of Node. To help in that commitment, our continuous integration setup runs against all LTS versions of Node in addition the most recent Node release; called current.
JavaScript package managers should allow you to install this package with any version of Node, with, at most, a warning if your version of Node does not fall within the range specified by our nodeengines property. If you encounter issues installing this package, please report the issue to your package manager.
Contributing
Please read our contributing guide on how you can help improve this project.
conventional-changelog/get-pkg-repo có bao nhiêu sao?
conventional-changelog/get-pkg-repo có 17 sao GitHub — tải lại trang để xem số mới nhất, hoặc xem trực tiếp github.com/conventional-changelog/get-pkg-repo. TopGit phản chiếu số sao của GitHub nhưng không cam kết đến từng phút.
conventional-changelog/get-pkg-repo có phải mã nguồn mở không?
Có — conventional-changelog/get-pkg-repo phát hành theo license MIT, nghĩa là mã nguồn mở để đọc, fork và (tùy license) tái sử dụng. Mã: github.com/conventional-changelog/get-pkg-repo.
conventional-changelog/get-pkg-repo có website riêng không?
TopGit chưa ghi nhận URL trang chủ cho conventional-changelog/get-pkg-repo. Phần README ở tab phía trên thường có link demo, hoặc xem mô tả GitHub của repo.
conventional-changelog/get-pkg-repo là gì?
conventional-changelog/get-pkg-repo (conventional-changelog/get-pkg-repo) là dự án JavaScript trên GitHub. Theo mô tả gốc: Get repository user and project information from package.json file contents.
Đọc thêm về conventional-changelog/get-pkg-repo ở đâu?
Trang TopGit này là một snapshot — tab "Readme" hiển thị nguyên văn README của repo (đã bỏ link, giữ ảnh). Repo GitHub ở github.com/conventional-changelog/get-pkg-repo là nguồn chính thức.
Đọc đầy đủ README ở tab phía trên.
get-pkg-repo có đáng để bạn bỏ thời gian?
ChatGPT, Claude và Perplexity đều đọc được trang này. Hỏi thử xem họ nghĩ gì về get-pkg-repo.