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

Method toString

src/Bundle.ts:292–303  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected