MCPcopy Create free account
hub / github.com/AlexErrant/Pentive / getTextFile

Method getTextFile

shared-dom/src/tar.ts:128–133  ·  view source on GitHub ↗
(file_name: string)

Source from the content-addressed store, hash-verified

126 }
127
128 getTextFile(file_name: string) {
129 const info = this.fileInfo.find((info) => info.name === file_name)
130 if (info != null) {
131 return this._readTextFile(info.header_offset + 512, info.size)
132 }
133 }
134
135 getFileBlob(file_name: string, mimetype: string) {
136 const info = this.fileInfo.find((info) => info.name === file_name)

Callers 1

parsePluginNpmPackageFunction · 0.80

Calls 1

_readTextFileMethod · 0.95

Tested by

no test coverage detected