Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

@starptech/prettyhtml-hastscript

StarpTech15.9kMIT0.10.0

Hyperscript compatible DSL for creating virtual HAST trees

hast, prettyhtml, vdom, virtual, dom, hyperscript, dsl, html

readme

@starptech/prettyhtml-hastscript

Hyperscript compatible DSL for creating virtual HAST trees

Installation

npm install --save @starptech/prettyhtml-hastscript

Caveats

The implementation is a modified version of Hastscript Version 4.0.0

  • Known html attributes aren't handled case-sensitively
  • Don't coerce or optimize attribute values
  • Don't house <template> node through content property. Handle it like any other element.