mdast-util-to-hast
mdast utility to transform to hast- 82%
- 32m
- 3.81 B
hastscript
hast utility to create trees- 82%
- 27m
- 6.68 B
hast-util-parse-selector
hast utility to create an element from a simple CSS selector- 81%
- 26m
hast-util-from-parse5
hast utility to transform from Parse5’s AST- 81%
- 17m
- 7.63 B
hast-util-raw
hast utility to reparse a tree- 80%
- 15m
- 54.4 B
hast-util-to-parse5
hast utility to transform hast to Parse5’s AST- 80%
- 15m
hast-util-whitespace
hast utility to check if a node is inter-element whitespace- 77%
- 25m
hast-util-to-html
hast utility to serialize to HTML- 75%
- 8.9m
hast-util-is-element
hast utility to check if a node is a (certain) element- 75%
- 13m
hast-util-sanitize
hast utility to sanitize nodes- 74%
- 2.8m
- 2.86 B
hast-util-to-string
hast utility to get the plain-text value of a node- 74%
- 9.5m
hast-util-has-property
hast utility to check if a node has a property- 73%
- 3.5m
hast-util-to-text
hast utility to get the plain-text value of a node according to theinnerText
algorithm- 73%
- 4.5m
- 0.954 B
hast-util-heading-rank
hast utility to get the rank (or depth, level) of headings- 72%
- 7.3m
hast-util-select
hast utility forquerySelector
,querySelectorAll
, andmatches
- 72%
- 1.7m
- 13.4 B
hast-util-to-estree
hast utility to transform to estree (JavaScript AST) JSX- 72%
- 6.8m
hast-util-is-body-ok-link
hast utility to check if a link element is “Body OK”- 71%
- 1.1m
hast-util-to-mdast
hast utility to transform to mdast- 70%
- 570k
hast-util-from-dom
hast utility to create a tree from the DOM- 70%
- 2.1m
hast-util-phrasing
hast utility to check if a node is phrasing content- 70%
- 1.1m
- 845 B
hast-util-is-conditional-comment
hast utility to check if a node is a conditional comment- 69%
- 256k
- 225 B
hast-util-embedded
hast utility to check if a node is an embedded element- 69%
- 1.4m
hast-util-from-string
hast utility to set the plain-text value of a node- 68%
- 100k
hast-util-is-css-link
hast utility to check if an element is a css link- 68%
- 95k
hast-util-is-javascript
hast utility to check if an element is a JavaScript script- 68%
- 95k
hast-util-is-css-style
hast utility to check if an element is a css style- 68%
- 96k
hast-util-to-nlcst
hast utility to transform to nlcst- 68%
- 90k
- 1.91 B
hast-util-heading
hast utility to check if a node is a heading element- 68%
- 27k
hast-util-find-and-replace
hast utility to find and replace text in a tree- 68%
- 277k
- 0.954 B
hast-util-to-dom
hast utility to transform to the DOM- 68%
- 13k
- 5.72 B
hast-util-reading-time
hast utility to estimate the reading time- 67%
- 7.3k
hast-util-from-selector
hast utility to parse CSS selectors to hast nodes- 67%
- 11k
- 11.4 B
hast-util-to-xast
hast utility to transform to xast- 67%
- 4.7k
- 5.72 B
hast-util-transparent
hast utility to check if a node is a transparent element- 66%
- 67
hast-util-sectioning
hast utility to check if a node is a sectioning element- 66%
- 42
hast-util-assert
hast utility to assert nodes- 66%
- 86
hast-util-labelable
hast utility to check whether a node is labelable- 66%
- 45
hast-util-classnames
hast utility to merge class names together- 66%
- 249k
- 497 B
hast-util-from-text
hast utility to set the plain-text value of a node according to theinnerText
algorithm- 66%
- 388
- 352 B
hast-util-shift-heading
hast utility to change heading rank (or depth, level)- 66%
- 3.9k
- 519 B
hast-util-script-supporting
hast utility to check if a node is a script-supporting element- 66%
- 65
hast-util-interactive
hast utility to check if a node is interactive- 65%
- 19k
hast-util-from-html
hast utility to parse from HTML- 65%
- 4.4m
- 55.3 B
hast-util-truncate
hast utility to truncate the tree to a certain number of characters- 64%
- 56k
hast-util-excerpt
hast utility to excerpt the tree to a comment- 64%
- 55k
- 0.954 B
hast-util-from-lezer
Render styled Lezer syntax trees to hast- 57%
- 6.2k
Find other packages matching hast-util on npm