Socket
Socket
Sign inDemoInstall

git-releases

Package Overview
Dependencies
7
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    git-releases

Get all versions or last version of a github repository


Version published
Maintainers
1
Created

Readme

Source

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)

Keywords

FAQs

Last updated on 01 Apr 2024

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc