parse-github-repo-url

WebJar for parse-github-repo-url

License

License

MIT
Categories

Categories

Github Development Tools Version Controls
GroupId

GroupId

org.webjars.npm
ArtifactId

ArtifactId

parse-github-repo-url
Last Version

Last Version

1.4.1
Release Date

Release Date

Type

Type

jar
Description

Description

parse-github-repo-url
WebJar for parse-github-repo-url
Project URL

Project URL

https://www.webjars.org
Source Code Management

Source Code Management

https://github.com/repo-utils/parse-github-repo-url

Download parse-github-repo-url

How to add to project

<!-- https://jarcasting.com/artifacts/org.webjars.npm/parse-github-repo-url/ -->
<dependency>
    <groupId>org.webjars.npm</groupId>
    <artifactId>parse-github-repo-url</artifactId>
    <version>1.4.1</version>
</dependency>
// https://jarcasting.com/artifacts/org.webjars.npm/parse-github-repo-url/
implementation 'org.webjars.npm:parse-github-repo-url:1.4.1'
// https://jarcasting.com/artifacts/org.webjars.npm/parse-github-repo-url/
implementation ("org.webjars.npm:parse-github-repo-url:1.4.1")
'org.webjars.npm:parse-github-repo-url:jar:1.4.1'
<dependency org="org.webjars.npm" name="parse-github-repo-url" rev="1.4.1">
  <artifact name="parse-github-repo-url" type="jar" />
</dependency>
@Grapes(
@Grab(group='org.webjars.npm', module='parse-github-repo-url', version='1.4.1')
)
libraryDependencies += "org.webjars.npm" % "parse-github-repo-url" % "1.4.1"
[org.webjars.npm/parse-github-repo-url "1.4.1"]

Dependencies

There are no dependencies for this project. It is a standalone project that does not depend on any other jars.

Project Modules

There are no modules declared in this project.

parse-github-repo-url

Parse a GitHub URL for user/project@version

Build Status semantic-release

Features

Parse all the stupid ways you could write a GitHub URL in your damn package.json. Supports:

  • <user>/<repo#<commit>
  • git:// and .git w/ #commit or @version
  • git@ and https:git@
  • www.github.com
  • gitlab.<my company name>.com/user/repo.git parsing
  • All 5 different ways you could download a freaking tarball/zipball

API

[user, repo, version] = parse(url)

version could be falsey, a semantic version, a commit, or a branch, etc.

var parse = require('parse-github-repo-url')
parse('component/emitter#1') // => ['component', 'emitter', '1']

See the tests for all the different types of supported URLs.

org.webjars.npm

Versions

Version
1.4.1