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

Function parser

src/parser/object-parser.test.ts:18–24  ·  view source on GitHub ↗

* Helper to create an ObjectParser from a string.

(input: string)

Source from the content-addressed store, hash-verified

16 * Helper to create an ObjectParser from a string.
17 */
18function parser(input: string): ObjectParser {
19 const bytes = new TextEncoder().encode(input);
20 const scanner = new Scanner(bytes);
21 const reader = new TokenReader(scanner);
22
23 return new ObjectParser(reader);
24}
25
26describe("ObjectParser", () => {
27 describe("primitives", () => {

Callers 1

Calls 1

encodeMethod · 0.65

Tested by

no test coverage detected