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

Function parser

src/parser/xref-parser.test.ts:9–14  ·  view source on GitHub ↗

* Helper to create an XRefParser from a string.

(input: string)

Source from the content-addressed store, hash-verified

7 * Helper to create an XRefParser from a string.
8 */
9function parser(input: string): XRefParser {
10 const bytes = new TextEncoder().encode(input);
11 const scanner = new Scanner(bytes);
12
13 return new XRefParser(scanner);
14}
15
16describe("XRefParser", () => {
17 describe("parseTable", () => {

Callers 1

Calls 1

encodeMethod · 0.65

Tested by

no test coverage detected