@0x-lerna-fork/prerelease-id-from-version
v3.16.3
Published
Get the prerelease ID from a version string
Downloads
35
Readme
@0x-lerna-fork/prerelease-id-from-version
Get the prerelease ID from a version string
Usage
const prereleaseIdFromVersion = require("@0x-lerna-fork/prerelease-id-from-version");
prereleaseIdFromVersion(1.0.0-alpha.0); // => "alpha"
prereleaseIdFromVersion(1.0.0); // => undefined
prereleaseIdFromVersion(); // => undefined
Install lerna for access to the lerna
CLI.