1.0.1 • Published 8 years ago

bemor-latest-github v1.0.1

Weekly downloads
4
License
CC-BY-4.0
Repository
github
Last release
8 years ago

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