@0x-lerna-fork/prerelease-id-from-version 中文文档教程
@0x-lerna-fork/prerelease-id-from-version
从版本字符串中获取预发布 ID
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
安装 lerna 以访问 lerna
CLI。
@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.