git-releases

1.0.2 • 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 - 2022 | TARIQ (contact@itariq.dev)

Package Sidebar

Install

npm i git-releases

Homepage

itariq.dev

Weekly Downloads

4

Version

1.0.2

License

MIT

Unpacked Size

4.04 kB

Total Files

6

Last publish

Collaborators

  • tariqdev