</>PackageGraphPackageGraph

hosted-git-info

npmv10.1.1

Provides metadata and conversions from repository urls for GitHub, Bitbucket and GitLab

Safe to adopt

Yes — hosted-git-info scores well across adoption, maintenance, weight, supply chain, and licensing. No download data reported for this package yet. Last published 114 days ago. 12 releases in the last 2 years.

  • ?Adoption: grade ?, Not reported by this registry.

    No download data reported for this package yet.

  • BMaintenance: grade B, Good.

    Last published 114 days ago. 12 releases in the last 2 years.

  • AWeight: grade A, Excellent.

    Pulls in 1 transitive package, about 28 KB installed (at least — some of the tree is still being crawled).

  • ASupply chain: grade A, Excellent.

    No install scripts, 4 maintainers, and a contained dependency surface.

  • ALicense: grade A, Excellent.

    ISC — permissive, with no copyleft found in the dependency tree.

Grades are computed deterministically from registry metadata collected by PackageGraph — downloads, dependents, publish dates, the resolved dependency tree, maintainer count, and declared licenses. No third-party scores are used.

Install cost

What you actually take on by adding hosted-git-info to a project.

1
Direct dependencies

Runtime packages this one declares itself.

1
Total installed

Distinct packages in the full runtime tree, deduplicated the way a package manager would.

28 KB
Install size

Unpacked size of this package plus its entire runtime tree.

1
Tree depth

Longest resolved dependency chain below this package.

Part of this dependency tree has not been crawled yet, so these figures are a lower bound rather than a final total.

Compatibility

Node.js
node ^22.22.2 || ^24.15.0 || >=26.0.0
Module format
CommonJS only
TypeScript
No bundled types
Install scripts
None

Quick start

A usage example from the hosted-git-info README.

javascriptFull README ↗
const hostedGitInfo = require("hosted-git-info")
const info = hostedGitInfo.fromUrl("git@github.com:npm/hosted-git-info.git", opts)
/* info looks like:
{
  type: "github",
  domain: "github.com",
  user: "npm",
  project: "hosted-git-info"
}
*/

Dependencies

Declared by hosted-git-info v10.1.1. Runtime dependencies are installed with the package; dev dependencies are not.

Runtime (1)

lru-cache ^11.1.0

Dev (2)

@npmcli/eslint-config ^6.0.0@npmcli/template-oss 5.1.0

Used by

Popular packages that depend on hosted-git-info.

Relationship graph

Dependencies (left) and dependents (right) of hosted-git-info.

npm-package-arghosted-git-info
hosted-git-info dependencies dependents

Frequently installed together

Release history

8 releases in the last two years, typically about 7 days apart.

Recent versions of hosted-git-info
VersionPublishedSizeLicense
10.1.1latest3 months ago28 KBISC
10.1.04 months ago28 KBISC
10.0.04 months ago28 KBISC
9.0.34 months ago28 KBISC
9.0.211 months ago27 KBISC
9.0.111 months ago27 KBISC
9.0.01 year ago27 KBISC
8.1.01 year ago27 KBISC
8.0.21 year ago26 KBISC
6.1.31 year ago26 KBISC
6.1.21 year ago26 KBISC
8.0.11 year ago26 KBISC
8.0.02 years ago26 KBISC
7.0.22 years ago26 KBISC
7.0.13 years ago26 KBISC

Overview

hosted-git-info is an npm package that provides metadata and conversions from repository urls for GitHub, Bitbucket and GitLab. It has 1 known dependents in the graph. The latest version is 10.1.1, released under the ISC license.

Who should use it

Teams working in the npm ecosystem who need provides metadata and conversions from repository urls for GitHub, Bitbucket and GitLab and value a focused solution.

When not to use it

Consider an alternative if you need to have first-class TypeScript types out of the box, or if a more actively-maintained option better fits your npm stack.

Pros

  • Clear open-source license (ISC).
  • Lean dependency tree (3 direct dependencies).

Cons

  • No bundled TypeScript types (may require a separate @types package).

Auto-generated from collected registry metadata. No external claims are inferred.

Maintainers

Keywords

Frequently asked questions

Should I use hosted-git-info?

Yes — hosted-git-info scores well across adoption, maintenance, weight, supply chain, and licensing. No download data reported for this package yet. Last published 114 days ago. 12 releases in the last 2 years.

How do I install hosted-git-info?

Run `npm install hosted-git-info` to add hosted-git-info to your npm project.

How many dependencies does hosted-git-info have?

hosted-git-info declares 3 direct dependencies and pulls in 1 packages in total once its runtime tree is resolved totalling about 28 KB on disk.

What license is hosted-git-info released under?

hosted-git-info is distributed under the ISC license.

How popular is hosted-git-info?

npm does not publish download counts. Within PackageGraph's crawl, 1 known packages depend on hosted-git-info.

Is hosted-git-info still maintained?

The most recent release of hosted-git-info (v10.1.1) was published 3 months ago.

Does hosted-git-info run install scripts?

No. hosted-git-info does not define preinstall, install, or postinstall scripts, so installing it does not execute publisher-supplied code.