Share your code. npm Orgs help your team discover, share, and reuse code. Create a free org »

github-linker-resolve

0.2.0 • Public • Published

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.

Keywords

none

install

npm i github-linker-resolve

Downloadsweekly downloads

1

version

0.2.0

license

MIT

repository

githubgithub

last publish

collaborators

  • avatar