JSPM

Found 65 results for hast-util

hast-util-whitespace

hast utility to check if a node is inter-element whitespace

  • v3.0.0
  • 104.88
  • Published

hast-util-raw

hast utility to reparse a tree

  • v9.1.0
  • 101.58
  • Published

hastscript

hast utility to create trees

  • v9.0.1
  • 100.55
  • Published

hast-util-to-string

hast utility to get the plain-text value of a node

  • v3.0.1
  • 100.17
  • Published

hast-util-is-element

hast utility to check if a node is a (certain) element

  • v3.0.0
  • 98.66
  • Published

hast-util-to-jsx-runtime

hast utility to transform to preact, react, solid, svelte, vue, etc

  • v2.3.6
  • 95.97
  • Published

hast-util-to-estree

hast utility to transform to estree (JavaScript AST) JSX

  • v3.1.3
  • 95.58
  • Published

hast-util-to-text

hast utility to get the plain-text value of a node according to the `innerText` algorithm

  • v4.0.2
  • 89.93
  • Published

hast-util-select

hast utility for `querySelector`, `querySelectorAll`, and `matches`

  • v6.0.4
  • 84.09
  • Published

hast-util-embedded

hast utility to check if a node is an embedded element

  • v3.0.0
  • 83.04
  • Published

hast-util-phrasing

hast utility to check if a node is phrasing content

  • v3.0.1
  • 82.45
  • Published

hast-util-excerpt

hast utility to excerpt the tree to a comment

  • v2.0.0
  • 63.26
  • Published

hast-util-truncate

hast utility to truncate the tree to a certain number of characters

  • v2.0.0
  • 60.79
  • Published

hast-util-heading

hast utility to check if a node is a heading element

  • v3.0.0
  • 57.36
  • Published

hast-util-to-dom

hast utility to transform to the DOM

  • v4.0.1
  • 54.46
  • Published

hast-util-from-text

hast utility to set the plain-text value of a node according to the `innerText` algorithm

  • v3.0.0
  • 35.83
  • Published

hast-util-class-list

Simulate the browser's classList API for HAST nodes

  • v2.0.1
  • 31.29
  • Published

hast-util-transparent

hast utility to check if a node is a transparent element

  • v3.0.0
  • 21.48
  • Published

rehype-slugs

rehype plugin to add ids to headings and output.

  • v0.0.5
  • 16.62
  • Published

hast-util-labelable

hast utility to check whether a node is labelable

  • v3.0.0
  • 15.07
  • Published

hast-util-to-tiptap

hast utility to transform to be used by TipTap renderHTML

  • v0.0.1
  • 14.47
  • Published

hast-util-sectioning

hast utility to check if a node is a sectioning element

  • v3.0.0
  • 13.99
  • Published

hast-util-from-parse5-ns

A fork of the original hast utility to transform from Parse5’s AST

  • v7.1.1
  • 13.32
  • Published

hastscript-ns

hast utility to create trees

  • v7.0.3
  • 12.10
  • Published

hast-util-to-html-ns

A fork of the original hast utility that serializes an AST to HTML

  • v8.0.4
  • 9.45
  • Published