@types/html2json
TypeScript icon, indicating that this package has built-in type declarations

1.0.4 • Public • Published

Installation

npm install --save @types/html2json

Summary

This package contains type definitions for html2json (https://github.com/jxck/html2json).

Details

Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/html2json.

index.d.ts

export interface Node {
    node: "root" | "element" | "text" | "comment";
    tag?: string;
    child?: Node[] | Node;
    text?: string;
    attr?: { [key: string]: string | string[] };
}
export function html2json(html: string): Node;
export function json2html(json: Node): string;

Additional Details

  • Last updated: Tue, 07 Nov 2023 03:09:37 GMT
  • Dependencies: none

Credits

These definitions were written by YEK-PLUS.

Readme

Keywords

none

Package Sidebar

Install

npm i @types/html2json

Weekly Downloads

669

Version

1.0.4

License

MIT

Unpacked Size

3.09 kB

Total Files

5

Last publish

Collaborators

  • types