Little module that helps with link resolving.
$ npm install --save octo-linker-resolver
Resolve a url into a GitHub url
var resolver = require('octo-linker-resolver');
resolver('user/repo');
// https://github.com/user/repo
resolver('user/repo#master');
// https://github.com/user/repo/tree/master
resolver('../../index.js', 'https://github.com/user/repo/blob/master/lib/utils/math.js');
// https://github.com/user/repo/blob/master/index.js
resolver('user/repo@master');
// https://github.com/user/tree/master
resolver('user/repo@master:/folder/file.js');
// https://github.com/user/repo/blob/master/folder/file.js
Copyright (c) 2015 Stefan Buck. Licensed under the MIT license.