Skip to main content
cngx-src documentation

makeVersion

Functionutils/version

projects/utils/version.ts

Description#

Creates a parsed Version from a semver string.

The pre-release tag and build metadata are split off before the dot parsing, so '0.2.0-rc.2' yields patch '0' and prerelease 'rc.2' instead of a mangled patch segment. Display-only - see Version.

Signature#

makeVersion(full: string)

Parameters#

@paramfullstring

Returns#

Version