into semver for conversions
Convert a value to a semantic version.
Signature
> into semver {flags}
Input/output types:
| input | output |
|---|---|
| string | semver |
| semver | semver |
| record | semver |
Examples
Convert a string to a semver value
> '1.2.3' | into semverConvert a string with prerelease
> '1.2.3-alpha.1+build.2' | into semverConvert a record to a semver value
> {major: 1, minor: 2, patch: 3} | into semver