# get-package-github-url

> Get the github URL of a npm package

Latest version **1.0.5** (published 2017-12-07) · MIT license · 0 weekly downloads

## Install

```sh
npm install get-package-github-url
pnpm add get-package-github-url
yarn add get-package-github-url
bun add get-package-github-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.0.5 |
| Published | 2017-12-07 |
| First published | 2017-12-02 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Node | >=6 |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | Marco Fugaro |
| Maintainers | marcofugaro |
| Keywords | get, package, npm, github, repo, repository, url, link |

## Links

- npm: https://www.npmjs.com/package/get-package-github-url
- Repository: https://github.com/marcofugaro/get-package-github-url
- Homepage: https://github.com/marcofugaro/get-package-github-url#readme
- Issues: https://github.com/marcofugaro/get-package-github-url/issues
- npm.io page: https://npm.io/package/get-package-github-url

## Alternatives

- [base64url](https://npm.io/package/base64url.md) — 6.1M weekly downloads
- [get-installed-path](https://npm.io/package/get-installed-path.md) — 502.9K weekly downloads
- [@uppy/url](https://npm.io/package/@uppy/url.md) — 185.8K weekly downloads
- [@d3fc/d3fc-shape](https://npm.io/package/@d3fc/d3fc-shape.md) — 16.2K weekly downloads
- [localizer](https://npm.io/package/localizer.md) — 226 weekly downloads

## Recent versions

- 1.0.5 (latest) — 2017-12-07
- 1.0.4 — 2017-12-07
- 1.0.3 — 2017-12-02
- 1.0.2 — 2017-12-02

## README

# get-package-github-url [![Build Status][travis-image]][travis-url] [![Dependency Status][daviddm-image]][daviddm-url] [![devDependency Status][daviddm-dev-image]][daviddm-dev-url]

> Get the github URL of a npm package


## Install

```
npm install get-package-github-url
```
or
```
yarn add get-package-github-url
```


## Usage

```js
import getPackageGithubUrl from 'get-package-github-url'

getPackageGithubUrl('promisify-dom-selector') // a sample npm package
  .then((githubUrl) => {
    // ...
  })

// or you can use it with async/await
async () => {
  const githubUrl = await getPackageGithubUrl('promisify-dom-selector')
  // ...
}
```


## API

### getPackageGithubUrl(packageName)

#### packageName

Type: `string`

The name of a npm package. It corresponds to the field `name` of the `package.json`.

It returns `null` if the github url is not found.

## License

MIT © [Marco Fugaro](https://github.com/marcofugaro)


[travis-image]: https://travis-ci.org/marcofugaro/get-package-github-url.svg?branch=master
[travis-url]: https://travis-ci.org/marcofugaro/get-package-github-url
[daviddm-image]: https://david-dm.org/marcofugaro/get-package-github-url.svg
[daviddm-url]: https://david-dm.org/marcofugaro/get-package-github-url
[daviddm-dev-image]: https://david-dm.org/marcofugaro/get-package-github-url/dev-status.svg
[daviddm-dev-url]: https://david-dm.org/marcofugaro/get-package-github-url/?type=dev

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