MCPcopy Create free account
hub / github.com/ColmapView/Colmapview.github.io / buildTextFile

Function buildTextFile

src/test/builders/fileFakes.ts:477–479  ·  view source on GitHub ↗
(name: string, contents: string)

Source from the content-addressed store, hash-verified

475}
476
477export function buildTextFile(name: string, contents: string): File {
478 return buildReadableFile({ name, contents, type: 'text/plain' });
479}
480
481export function buildBinaryFile(name: string, contents: string): File {
482 return buildReadableFile({ name, contents, type: 'application/octet-stream' });

Callers 2

textFileFunction · 0.90
textFileFunction · 0.90

Calls 1

buildReadableFileFunction · 0.85

Tested by 2

textFileFunction · 0.72
textFileFunction · 0.72