MCPcopy
hub / github.com/vercel/hyper / toString

Method toString

bin/yarn-standalone.js:26283–26295  ·  view source on GitHub ↗
(opts)

Source from the content-addressed store, hash-verified

26281 return this.toString()
26282 }
26283 toString (opts) {
26284 opts = opts || {}
26285 let sep = opts.sep || ' '
26286 if (opts.strict) {
26287 // Entries must be separated by whitespace, according to spec.
26288 sep = sep.replace(/\S+/g, ' ')
26289 }
26290 return Object.keys(this).map(k => {
26291 return this[k].map(hash => {
26292 return Hash.prototype.toString.call(hash, opts)
26293 }).filter(x => x.length).join(sep)
26294 }).filter(x => x.length).join(sep)
26295 }
26296 concat (integrity, opts) {
26297 const other = typeof integrity === 'string'
26298 ? integrity

Callers 3

toJSONMethod · 0.95
concatMethod · 0.95
pickAlgorithmMethod · 0.95

Calls 1

filterMethod · 0.80

Tested by

no test coverage detected