node-semver
node-semver copied to clipboard
[FEATURE] Way to find out if a version is a pre-release version through semver CLI
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?
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).
I'd also like to see this as part of the JS API.