MCPcopy
hub / github.com/npm/node-semver / format

Method format

classes/semver.js:97–103  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

95 }
96
97 format () {
98 this.version = `${this.major}.${this.minor}.${this.patch}`
99 if (this.prerelease.length) {
100 this.version += `-${this.prerelease.join('.')}`
101 }
102 return this.version
103 }
104
105 toString () {
106 return this.version

Callers 3

constructorMethod · 0.95
incMethod · 0.95
minVersionFunction · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected