Narnia's Poofy Meatcleaver
    Share your code. npm Orgs help your team discover, share, and reuse code. Create a free org »

    github-linker-resolverpublic

    github-linker-resolver

    NPM version Build Status Dependency Status Coverage Status

    Little module that helps with link resolving.

    Install

    $ npm install --save github-linker-resolver

    API

    Resolve a url into GitHub endpoint

    var resolver = require('github-linker-resolverr');
     
    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) 2014 Stefan Buck. Licensed under the MIT license.

    Keywords

    none

    install

    npm i github-linker-resolver

    Downloadsweekly downloads

    0

    version

    0.2.1

    license

    MIT

    repository

    githubgithub

    last publish

    collaborators

    • avatar