Socket
Book a DemoInstallSign in
Socket

@vltpkg/git-scp-url

Package Overview
Dependencies
Maintainers
6
Versions
46
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@vltpkg/git-scp-url

Parse scp-style git URLs like `git+ssh://host:some/path`

latest
Source
npmnpm
Version
1.0.0-rc.13
Version published
Maintainers
6
Created
Source

git-scp-url

@vltpkg/git-scp-url

Utility function for parsing git "scp-style" URLs, like git:git@github.com:user/repo or git+ssh://github.com:user/repo.

Usage

import { gitScpURL } from '@vltpkg/git-scp-url'

console.log(gitScpURL('git@github.com:user/repo'))

/*
URL {
  href: 'git+ssh://git@github.com/user/repo',
  // NB: this is only set if the url is http: or https:
  origin: 'null',
  protocol: 'git+ssh:',
  username: 'git',
  password: '',
  host: 'github.com',
  hostname: 'github.com',
  port: '',
  pathname: '/user/repo',
  search: '',
  searchParams: URLSearchParams {},
  hash: ''
}
*/

FAQs

Package last updated on 19 Dec 2025

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts