UNPKG

@jclem/logfmt2

Version:

Parses logs and stringifies logs into the logfmt format

21 lines (20 loc) 402 B
/** * Scans over a string, character by character */ export default class StringScanner { private readonly data; pos: number; constructor(data: string); /** * Fetch the next character. */ next(): string | undefined; /** * Peek at the next character. */ peek(): string | undefined; /** * Rewind the position by 1. */ rewind(): void; }