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

Method length

src/Bundle.ts:309–314  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

307 }
308
309 length(): number {
310 return this.sources.reduce(
311 (length, source) => length + source.content.length(),
312 this.intro.length,
313 )
314 }
315
316 trimLines(): this {
317 return this.trim('[\\r\\n]')

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected