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

Method toString

src/Bundle.ts:288–299  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

286 }
287
288 toString(): string {
289 const body = this.sources
290 .map((source, i) => {
291 const separator = source.separator !== undefined ? source.separator : this.separator
292 const str = (i > 0 ? separator : '') + source.content.toString()
293
294 return str
295 })
296 .join('')
297
298 return this.intro + body
299 }
300
301 isEmpty(): boolean {
302 if (this.intro.length && this.intro.trim())

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected