Github.parseRepoStr()

Parse a repo string (e.g. '/node-machine/machine')

Usage

Hover over inputs/exits for more info.

var Github = require('machinepack-github');


// Parse a repo string (e.g. '/node-machine/machine')

Github.parseRepoStr({

string: '/node-machine/machine#master',

}).execSync();

Inputs

string required

The repo string to parse

'/node-machine/machine#master'

Exits

error

An unexpected error occurred.

success

OK.

{ owner: 'node-machine', repo: 'machine', branch: 'master' }