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

Method toString

src/Bundle.ts:289–300  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected