MCPcopy Create free account
hub / github.com/LibPDF-js/core / loadFixture

Function loadFixture

examples/utils.ts:33–38  ·  view source on GitHub ↗
(category: string, filename: string)

Source from the content-addressed store, hash-verified

31 * ```
32 */
33export async function loadFixture(category: string, filename: string): Promise<Uint8Array> {
34 const path = join(FIXTURES_PATH, category, filename);
35 const buffer = await readFile(path);
36
37 return new Uint8Array(buffer);
38}
39
40/**
41 * Save example output to the output directory.

Callers 15

mainFunction · 0.90
mainFunction · 0.90
mainFunction · 0.90
mainFunction · 0.90
mainFunction · 0.90
mainFunction · 0.90
mainFunction · 0.90
mainFunction · 0.90
mainFunction · 0.90
mainFunction · 0.90
mainFunction · 0.90
mainFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected