UNPKG

netscape-bookmark-parser

Version:

A TypeScript/JavaScript library for parsing browser bookmark files (HTML format) and manipulating them as structured data. Compatible with both Deno and Node.js runtimes.

27 lines (26 loc) 668 B
/** * @module * * This module exposes the Deno DOM API with the WASM (Web Assembly) backend * * @example * ```typescript * import { DOMParser, Element } from "jsr:@b-fuze/deno-dom"; * * const doc = new DOMParser().parseFromString( * ` * <h1>Hello World!</h1> * <p>Hello from <a href="https://deno.land/">Deno!</a></p> * `, * "text/html", * ); * * const p = doc.querySelector("p")!; * console.log(p.textContent); // "Hello from Deno!" * ``` */ import init, { parse, parse_frag } from "./build/deno-wasm/deno-wasm.js"; import { register } from "./src/parser.js"; await init(); register(parse, parse_frag); export * from "./src/api.js";