github-linker-resolve
v0.2.0
Published
The best module ever.
Downloads
2
Readme
github-linker-resolve
Install
$ npm install --save github-linker-resolve
Usage
var githubLinkerResolve = require('github-linker-resolve');
githubLinkerResolve('user/repo'); // => https://github.com/user/repo
githubLinkerResolve('../../index.js','https://github.com/user/repo/blob/master/lib/utils/math.js'); // => https://github.com/user/repo/blob/master/index.js
githubLinkerResolve('user/repo@master'); // => https://github.com/user/tree/master
githubLinkerResolve('user/repo@master:/folder/file.js'); // => https://github.com/user/repo/blob/master/folder/file.js
License
Copyright (c) 2014 Stefan Buck. Licensed under the MIT license.