syntax-tree/mdast-util-to-hast
utility to transform mdast to hast- 82%
- 28m
- 104
syntax-tree/hastscript
utility to create hast trees- 82%
- 24m
- 164
syntax-tree/hast-util-parse-selector
utility to create an element from a simple CSS selector- 81%
- 23m
- 13
syntax-tree/hast-util-from-parse5
utility to transform Parse5’s AST to hast- 81%
- 16m
- 16
syntax-tree/hast-util-raw
utility to reparse a hast tree- 80%
- 14m
- 11
syntax-tree/hast-util-to-parse5
utility to transform hast to Parse5’s AST- 80%
- 14m
- 2
syntax-tree/hast-util-whitespace
utility to check if a node is inter-element whitespace- 77%
- 21m
- 4
syntax-tree/hast-util-to-html
utility to serialize hast to HTML- 75%
- 7.6m
- 92
syntax-tree/hast-util-is-element
utility to check if a node is a (certain) element- 75%
- 14m
- 12
syntax-tree/hast-util-sanitize
utility to sanitize hast nodes- 74%
- 2.7m
- 50
syntax-tree/hast-util-has-property
utility to check if a node has a property- 73%
- 2.8m
- 1
syntax-tree/hast-util-to-text
utility to get the plain-text value of a node according to theinnerText
algorithm- 73%
- 3.5m
- 19
syntax-tree/hast-util-heading-rank
utility to get the rank (or depth, level) of headings- 72%
- 9.2m
- 7
syntax-tree/hast-util-select
utility to addquerySelector
,querySelectorAll
, andmatches
support for hast- 72%
- 1.4m
- 38
syntax-tree/hast-util-to-estree
hast utility to transform to estree (JavaScript AST) JSX- 72%
- 5.9m
- 19
syntax-tree/hast-util-to-mdast
utility to transform hast (HTML) to mdast (markdown)- 70%
- 416k
- 38
syntax-tree/hast-util-from-dom
utility to transform a DOM tree to hast- 70%
- 1.6m
- 22
syntax-tree/hast-util-phrasing
utility to check if a node is phrasing content- 70%
- 840k
- 0
syntax-tree/hast-util-embedded
utility to check if a node is an embedded element- 69%
- 1.1m
- 3
syntax-tree/hast-util-to-nlcst
utility to transform hast to nlcst- 68%
- 98k
- 4
syntax-tree/hast-util-heading
utility to check if a node is heading content- 68%
- 19k
- 6
syntax-tree/hast-util-find-and-replace
utility to find and replace text in a hast tree- 68%
- 248k
- 6
syntax-tree/hast-util-to-dom
utility to transform hast to a DOM tree- 68%
- 16k
- 19
syntax-tree/hast-util-reading-time
utility to estimate the reading time- 67%
- 4.4k
- 56
syntax-tree/hast-util-from-selector
utility to parse CSS selectors to hast nodes- 67%
- 6.9k
- 2
syntax-tree/hast-util-to-xast
utility to transform to xast (xml)- 67%
- 2.9k
- 4
syntax-tree/hast-util-transparent
utility to check if a node is a transparent element- 66%
- 39
- 1
syntax-tree/hast-util-sectioning
utility to check if a node is a sectioning element- 66%
- 11
- 2
syntax-tree/hast-util-assert
utility to assert hast nodes- 66%
- 44
- 1
syntax-tree/hast-util-labelable
utility to check whether a node is labelable- 66%
- 10
- 2
syntax-tree/hast-util-classnames
utility to merge class names together- 66%
- 202k
- 2
syntax-tree/hast-util-from-text
utility to set the plain-text value of a node according to theinnerText
algorithm- 66%
- 416
- 2
syntax-tree/hast-util-shift-heading
utility to change heading rank (or depth, level) in hast- 66%
- 3.9k
- 2
syntax-tree/hast-util-script-supporting
utility to check if a node is a script-supporting element- 66%
- 32
- 0
syntax-tree/hast-util-interactive
utility to check if a node is interactive- 65%
- 6.8k
- 0
syntax-tree/hast-util-from-html
hast utility to parse from HTML- 65%
- 3.5m
- 29
syntax-tree/hast-util-truncate
utility to truncate the tree to a certain number of characters- 64%
- 52k
- 3
syntax-tree/hast-util-excerpt
utility to truncate the tree to a comment- 64%
- 52k
- 2
joeltg/hast-util-from-lezer
Render styled Lezer syntax trees to hast- 57%
- 5.6k
- 5
Find other projects matching hast-util on GitHub