New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

@hdml/parser

Package Overview
Dependencies
Maintainers
1
Versions
13
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@hdml/parser

This module is part of the **HDML-Utilities** monorepo and provides a set of utility functions to parse **HTML** and **HDML** (HyperData Markup Language) documents into **DOM** and **HDOM** (HyperData Object Model) objects. It enables further manipulation

latest
npmnpm
Version
0.0.2-alpha.13
Version published
Maintainers
1
Created
Source

@hdml/parser

This module is part of the HDML-Utilities monorepo and provides a set of utility functions to parse HTML and HDML (HyperData Markup Language) documents into DOM and HDOM (HyperData Object Model) objects. It enables further manipulation and traversal of the document's structure.

Features

This package provides the following parser functions:

  • parseHTML: Parse an HTML string, and return the root of the generated DOM object.
  • parseHDML: Parses an HDML string and converts it into an HDOM object.

Dependencies

This module depends on the @hdml/schemas package, which distributes FlatBuffers schema-based classes for serialization, and @hdml/types package that distributes TypeScript interface definitions for HDML components.

Installation

To install this module, simply add it to your project:

npm install @hdml/parser

Usage

Here’s a basic example of how to use the parser functions in your project:

import { parseHDML, parseHTML } from "@hdml/parser";

const hdml = "<hdml-model>...</hdml-model>";
const hdom = parseHDML(hdml);
console.log(hdom);

const html = "<html>...</html>";
const dom = parseHTML(html);
console.log(dom);

License

Apache License Version 2.0

FAQs

Package last updated on 26 Feb 2026

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts