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

Function reader

src/parser/token-reader.test.ts:9–13  ·  view source on GitHub ↗

* Helper to create a TokenReader from a string.

(input: string)

Source from the content-addressed store, hash-verified

7 * Helper to create a TokenReader from a string.
8 */
9function reader(input: string): TokenReader {
10 const bytes = new TextEncoder().encode(input);
11
12 return new TokenReader(new Scanner(bytes));
13}
14
15describe("TokenReader", () => {
16 describe("whitespace and comments", () => {

Callers 1

Calls 1

encodeMethod · 0.65

Tested by

no test coverage detected