open Github repo pages for npm modules in your browser
npm install --save openg
const openg = require('openg');
openg('hackathons');
//=> returns a promise that opens the github page for the current directory in-browser
openg('express');
//=> returns a promise that opens the github page for express in-browser
openg(['inf', 'sist', 'openg'], {
issues: true
});
//=> returns a promise that opens the github issues pages for all in-browser
Type: string
| array
npm modules name(s) you want to open in your browser
Type: optional object
Pass these in to modify the behavior of openg
Open the GitHub issues page for specified repo(s)
Return the url's that would be opened and do not open them in-browser
Example usage:
openg('openg', {
issues: true,
dryRun: true
}).then(resp => {
console.log(resp);
});
//=> ['https://github.com/dawsonbotsford/openg/issues']
Type: promise
Array of expected url value(s)
MIT © Dawson Botsford