# @latiwesh/parse-github-repo-url

> Parse a GitHub URL for user/project@version

Latest version **1.4.2** (published 2021-01-05) · MIT license · 0 weekly downloads

## Install

```sh
npm install @latiwesh/parse-github-repo-url
pnpm add @latiwesh/parse-github-repo-url
yarn add @latiwesh/parse-github-repo-url
bun add @latiwesh/parse-github-repo-url
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.4.2 |
| Published | 2021-01-05 |
| First published | 2021-01-05 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 5 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Jonathan Ong |
| Maintainers | latiwesh |

## Links

- npm: https://www.npmjs.com/package/@latiwesh/parse-github-repo-url
- Repository: https://github.com/latiwesh/parse-github-repo-url
- Homepage: https://github.com/latiwesh/parse-github-repo-url/blob/master/README.md
- Issues: https://github.com/latiwesh/parse-github-repo-url/issues
- npm.io page: https://npm.io/package/@latiwesh/parse-github-repo-url

## Recent versions

- 1.4.2 (latest) — 2021-01-05

## README

# parse-github-repo-url

> Parse a GitHub URL for user/project@version

[![Build Status](https://travis-ci.org/repo-utils/parse-github-repo-url.svg?branch=master)](https://travis-ci.org/repo-utils/parse-github-repo-url)
[![semantic-release][semantic-image] ][semantic-url]

[semantic-image]: https://img.shields.io/badge/%20%20%F0%9F%93%A6%F0%9F%9A%80-semantic--release-e10079.svg
[semantic-url]: https://github.com/semantic-release/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 `false`y, a semantic version, a commit, or a branch, etc.

```js
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.

---
_Source: https://npm.io/package/@latiwesh/parse-github-repo-url · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
