openg

open Github repo pages for npm modules in your browser

Usage no npm install needed!

<script type="module">
  import openg from 'https://cdn.skypack.dev/openg';
</script>

README

openg

npm version Build Status npm download count XO code style

open Github repo pages for npm modules in your browser


Install

npm install --save openg

Usage

const openg = require('openg');

openg('hackathons');
//=> returns a promise that opens the github repo page for the current directory in browser


openg(express);
//=> returns a promise that opens the github repo page for express in browser


openg([inf, sist, openg]);
//=>  returns a promise that opens the github repo pages for inf, sist, and openg in browser

API

openg(target)


target

Type: string | array


returns

Type: promise


License

MIT © Dawson Botsford