MCPcopy Create free account
hub / github.com/Snapchat/Valdi / loadFromBytes

Function loadFromBytes

valdi/testdata/resources/modules/test/src/LoadFile.ts:9–13  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

7}
8
9export function loadFromBytes(): any {
10 const bytes = getModuleFileEntryAsBytes('test', 'src/test_json.json');
11 const str = arrayToString(bytes);
12 return JSON.parse(str);
13}

Callers

nothing calls this directly

Calls 3

arrayToStringFunction · 0.90
parseMethod · 0.45

Tested by

no test coverage detected