MCPcopy
hub / github.com/google/zx / text

Method text

src/core.ts:935–939  ·  view source on GitHub ↗
(encoding: Encoding = 'utf8')

Source from the content-addressed store, hash-verified

933 }
934
935 text(encoding: Encoding = 'utf8'): string {
936 return encoding === 'utf8'
937 ? this.toString()
938 : this.buffer().toString(encoding)
939 }
940
941 lines(delimiter?: string | RegExp): string[] {
942 return iteratorToArray(this[Symbol.iterator](delimiter))

Callers 5

core.test.jsFile · 0.80
vendor.test.jsFile · 0.80
build-npm.test.jsFile · 0.80
textFunction · 0.80
readScriptFromHttpFunction · 0.80

Calls 2

toStringMethod · 0.95
bufferMethod · 0.95

Tested by

no test coverage detected