node-semver icon indicating copy to clipboard operation
node-semver copied to clipboard

[FEATURE] Way to find out if a version is a pre-release version through semver CLI

Open tugberkugurlu opened this issue 9 years ago • 2 comments

Is there a way to find out if a version is a pre-release version through the semver CLI? If so, is it possible to get the pre-release identifier from a pre-release version?

tugberkugurlu avatar Feb 24 '16 22:02 tugberkugurlu

In fact, this can be any part of the version (e.g. I am only interested in {major}.{minor} part of the version, I want get parse this and get it out).

tugberkugurlu avatar Feb 27 '16 14:02 tugberkugurlu

I'd also like to see this as part of the JS API.

ljharb avatar Jun 28 '16 07:06 ljharb