Skip to content
OctoLinkerPublic

About

No description, website, or topics provided.

Resources

Stars

15 stars

Watchers

4 watching

Forks

Latest commit

 

History

12 Commits

Folders and files

Repository files navigation

resolver

NPM version Build Status Dependency Status Coverage Status

Little module that helps with link resolving.

Install

$ npm install --save octo-linker-resolver

API

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

License

Copyright (c) 2015 Stefan Buck. Licensed under the MIT license.

About

No description, website, or topics provided.

Resources

Stars

15 stars

Watchers

4 watching

Forks

Releases

Packages

Used by

Contributors

Languages