UNPKG

simple-html-tokenizer

Version:

Simple HTML Tokenizer is a lightweight JavaScript library that can be used to tokenize the kind of HTML normally found in templates.

3 lines (2 loc) • 140 B
import { TokenizerOptions, Token } from './types.js'; export default function tokenize(input: string, options?: TokenizerOptions): Token[];