Socket
Socket
Sign inDemoInstall

repo-path-parse

Package Overview
Dependencies
2
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

repo-path-parse


Version published
Maintainers
1
Created

Readme

Source

repo-path-parse

build status

parse repository path strings to get repository and organization parts

repo-path-parse(url)

Parse git remote URLs into an object with owner and repo keys.

Parameters

parametertypedescription
urlStringany git-clonable URL that points to GitHub

Example

var repoPathParse = require('repo-path-parse');
repoPathParse('git@github.com:tmcw/repo-path-parse.git');
// returns { owner: 'tmcw', repo: 'repo-path-parse' }

Returns Object, an object of {owner:'owner',repo:'repo'}

Installation

Requires nodejs.

$ npm install repo-path-parse

Tests

$ npm test

Keywords

FAQs

Last updated on 02 Mar 2015

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc