node package manager

github-linker-resolve

github-linker-resolve

NPM version Build Status Dependency Status Coverage Status

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.