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

Method toString

src/Bundle.ts:290–301  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected