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

Method range

classes/range.js:73–90  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

71 }
72
73 get range () {
74 if (this.formatted === undefined) {
75 this.formatted = ''
76 for (let i = 0; i < this.set.length; i++) {
77 if (i > 0) {
78 this.formatted += '||'
79 }
80 const comps = this.set[i]
81 for (let k = 0; k < comps.length; k++) {
82 if (k > 0) {
83 this.formatted += ' '
84 }
85 this.formatted += comps[k].toString().trim()
86 }
87 }
88 }
89 return this.formatted
90 }
91
92 format () {
93 return this.range

Callers

nothing calls this directly

Calls 1

toStringMethod · 0.45

Tested by

no test coverage detected