MCPcopy Create free account
hub / github.com/Rich-Harris/magic-string / toString

Method toString

src/Bundle.ts:312–323  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

310 }
311
312 toString(): string {
313 const body = this.sources
314 .map((source, i) => {
315 const separator = source.separator !== undefined ? source.separator : this.separator
316 const str = (i > 0 ? separator : '') + source.content.toString()
317
318 return str
319 })
320 .join('')
321
322 return this.intro + body
323 }
324
325 isEmpty(): boolean {
326 if (this.intro.length && this.intro.trim())

Callers 1

lengthMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected