Skip to content

hemanth/github-upstream-url

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

Get the upstream URL for your fork.

Resources

License

Stars

Watchers

Forks

Packages