Skip to content

Utility function to get the latest cleaned stable SemVer version from GitHub releases.

License

Notifications You must be signed in to change notification settings

seancroach/latest-stable-version

Repository files navigation

latest-stable-version

CI Badge NPM Badge

Utility function to get the latest cleaned stable SemVer version from GitHub releases.

Installation

Install latest-stable-version through npm:

$ npm install latest-stable-version

Usage

import latestStableVersion from "latest-stable-version";

const promise: Promise<string> = latestStableVersion({
  owner: "<owner>",
  repo: "<repo>",
});

License

This package is available as open source under the terms of the MIT License.