1.0.0 • Published 8 years ago

github-upstream-url v1.0.0

Weekly downloads
2
License
MIT
Repository
github
Last release
8 years ago

github-upstream-url Build Status

Get the upstream URL for your fork.

Install

$ npm install --save github-upstream-url

Usage

const githubUpstreamUrl = require('github-upstream-url');

githubUpstreamUrl('user/repo')
	.then((url) => console.log(url || 'Not a fork!'))
	.catch((err) => console.error(err))

API

githubUpstreamUrl(input)

input

Type: string

user/repo

CLI

Usage: $ github-upstream-url [user/repo]

Examples:

$ github-upstream-url hemanth/node
https://github.com/nodejs/node.git

License

MIT © Hemanth.HM