UNPKG

webextension-store-meta

Version:

Get browser extension(webextension) item meta from Chrome Web Store and Firefox add-ons.

12 lines (11 loc) 540 B
import { type Element, type Node } from "domhandler"; export declare const findOne: (test: (el: Element) => boolean, maybeNode: Node | Node[], recurse?: boolean) => Element | null; /** * Get a node's trimmed inner text. * domutils's stringify module is too heavy. * * @param node Node to get the inner text of. * @returns `node`'s trimmed inner text. */ export declare const getText: (node?: Node | Node[] | null) => string; export declare const queryOne: (node: Node | Node[], className: string, tagName?: string) => Element | null;