@0x-lerna-fork/prerelease-id-from-version

3.16.3 • Public • Published

@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.

Readme

Keywords

Package Sidebar

Install

npm i @0x-lerna-fork/prerelease-id-from-version

Weekly Downloads

3

Version

3.16.3

License

MIT

Unpacked Size

3.5 kB

Total Files

5

Last publish

Collaborators

  • albrow
  • fberger