method

npm_version

v7.2.3 - Show latest stable - Class: Releaser
npm_version()
public

This “npm-ifies” the current version number With npm, versions such as “5.0.0.rc1” or “5.0.0.beta1.1” are not compliant with its versioning system, so they must be transformed to “5.0.0-rc1” and “5.0.0-beta1-1” respectively. “5.0.0” –> “5.0.0” “5.0.1” –> “5.0.100” “5.0.0.1” –> “5.0.1” “5.0.1.1” –> “5.0.101” “5.0.0.rc1” –> “5.0.0-rc1” “5.0.0.beta1.1” –> “5.0.0-beta1-1”