Skip to main content
Deno 2 is finally here 🎉️
Learn more
Go to Latest
The Standard Library has been moved to JSR. See the blog post for details.
class Scanner
import { Scanner } from "https://deno.land/std@0.111.0/encoding/_toml/parser.ts";

Constructors

new
Scanner(source: string)

Methods

char(index?)

Get current character

eof()

Position reached EOF or not

next(count?: number)

Move position to next

nextUntilChar(options?: { inline?: boolean; comment?: boolean; })

Move position until current char is not a whitespace, EOL, or comment.

Get current position

slice(start: number, end: number): string

Get sliced string