git-releases

1.0.1 • Public • Published

Git Releases

git-releases NPM Package Statistics
  • Get all versions or last version of a github repository
  • Useful for making outdated version alerts for your package
  • Supports the Promise-API, you will be able to use .then, .catch, etc...

Installation from NPM

npm i git-releases

Example

const releases = require('git-releases');

run();
async function run(){
	// get all releases in array
	let versions = await releases("1TGDev", "mysql-database");
	console.log(versions);
	// ['1.1.4','1.1.5']
	
	// get last version in a string
	let version = await releases("1TGDev", "mysql-database", true);
	console.log(version);
	// '1.1.5'
}

Contributing

© git-releases, 2021 | TARIQ (contact@itariq.dev)

Dependents (3)

Package Sidebar

Install

npm i git-releases

Homepage

itariq.dev

Weekly Downloads

21

Version

1.0.1

License

MIT

Unpacked Size

3.93 kB

Total Files

6

Last publish

Collaborators

  • tariqdev