bemor-latest-github

    1.0.1 • Public • Published

    bemor-latest-github

    NPM Version travis xo

    Get latest releases of a Github repository.

    install

    npm i bemor-latest-github -S
    

    Usage

    ('auth/app')

    data is an Object.

    const ls = require('bemor-latest-github');
     
    lg('jgm/pandoc', (err, data) => {
        if (err) {
            return console.log(err);
        }
        console.log(data);
    });
     

    You will get this in an Object.

    list('auth/app')

    data is an array.

    const ls = require('bemor-latest-github');
     
    lg.list('jgm/pandoc', (err, data) => {
        if (err) {
            return console.log(err);
        }
        console.log(data);
    });
     

    You will get this :

    [ 'https://github.com/jgm/pandoc/releases/download/2.0.1.1/pandoc-2.0.1.1-1-amd64.deb',
      'https://github.com/jgm/pandoc/releases/download/2.0.1.1/pandoc-2.0.1.1-linux.tar.gz',
      'https://github.com/jgm/pandoc/releases/download/2.0.1.1/pandoc-2.0.1.1-macOS.pkg',
      'https://github.com/jgm/pandoc/releases/download/2.0.1.1/pandoc-2.0.1.1-windows.msi' ]

    Licence

    MIT

    Install

    npm i bemor-latest-github

    DownloadsWeekly Downloads

    2

    Version

    1.0.1

    License

    CC-BY-4.0

    Last publish

    Collaborators

    • arthak