hastscript
hast utility to create trees- 83%
- 22m
- 6.94 kB
mdast-util-to-hast
mdast utility to transform to hast- 82%
- 19m
- 5.26 kB
hast-to-hyperscript
hast utility to transform to something else (react, vue, etc) through a hyperscript DSL- 81%
- 15m
- 7.93 kB
hast-util-parse-selector
hast utility to create an element from a simple CSS selector- 81%
- 19m
- 340 B
hast-util-from-parse5
hast utility to transform from Parse5’s AST- 81%
- 16m
- 7.88 kB
hast-util-raw
hast utility to reparse a tree- 80%
- 15m
- 58.4 kB
hast-util-to-parse5
hast utility to transform hast to Parse5’s AST- 80%
- 15m
- 8.53 kB
hast-util-whitespace
hast utility to check if a node is inter-element whitespace- 76%
- 4m
- 234 B
hast-util-to-html
hast utility to serialize to HTML- 76%
- 2m
hast-util-is-element
hast utility to check if a node is a (certain) element- 75%
- 3m
- 550 B
hast-util-sanitize
hast utility to sanitize nodes- 74%
- 1m
- 1.97 kB
hast-util-to-string
hast utility to get the plain-text value of a node- 74%
- 1m
- 256 B
hast-util-has-property
hast utility to check if a node has a property- 73%
- 1m
- 243 B
hast-util-to-text
hast utility to get the plain-text value of a node according to theinnerText
algorithm- 73%
- 671k
- 1.7 kB
hast-util-heading-rank
hast utility to get the rank (or depth, level) of headings- 72%
- 540k
- 258 B
hast-util-select
hast utility forquerySelector
,querySelectorAll
, andmatches
- 72%
- 422k
- 12.9 kB
hast-util-to-estree
hast utility to transform to estree (JavaScript AST) JSX- 72%
- 414k
- 12.3 kB
hast-util-from-dom
hast utility to create a tree from the DOM- 71%
- 106k
- 7.29 kB
hast-util-is-body-ok-link
hast utility to check if a link element is “Body OK”- 70%
- 195k
- 709 B
hast-util-embedded
hast utility to check if a node is an embedded element- 70%
- 350k
- 442 B
hast-util-to-mdast
hast utility to transform to mdast- 70%
- 149k
- 7.67 kB
hast-util-phrasing
hast utility to check if a node is phrasing content- 69%
- 160k
- 1.14 kB
hast-util-is-conditional-comment
hast utility to check if a node is a conditional comment- 69%
- 44k
- 227 B
hast-util-to-nlcst
hast utility to transform to nlcst- 69%
- 80k
- 2.35 kB
hast-util-heading
hast utility to check if a node is a heading element- 68%
- 20k
- 423 B
hast-util-find-and-replace
hast utility to find and replace text in a tree- 68%
- 18k
- 1.4 kB
hast-util-is-css-link
hast utility to check if an element is a css link- 68%
- 6k
- 286 B
hast-util-is-javascript
hast utility to check if an element is a JavaScript script- 68%
- 6k
- 800 B
hast-util-from-string
hast utility to set the plain-text value of a node- 68%
- 9k
- 238 B
hast-util-is-css-style
hast utility to check if an element is a css style- 68%
- 8k
- 250 B
hast-util-reading-time
hast utility to estimate the reading time- 67%
- 335
- 37.3 kB
hast-util-to-dom
hast utility to transform to the DOM- 67%
- 2k
- 6.5 kB
hast-util-from-selector
hast utility to parse CSS selectors to hast nodes- 67%
- 2k
- 9.57 kB
hast-util-to-xast
hast utility to transform to xast- 67%
- 598
- 6.64 kB
hast-util-assert
hast utility to assert nodes- 66%
- 65
- 1.31 kB
hast-util-transparent
hast utility to check if a node is a transparent element- 66%
- 48
- 480 B
hast-util-sectioning
hast utility to check if a node is a sectioning element- 66%
- 56
- 417 B
hast-util-labelable
hast utility to check whether a node is labelable- 66%
- 47
- 276 B
hast-util-classnames
hast utility to merge class names together- 66%
- 82
hast-util-from-text
hast utility to set the plain-text value of a node according to theinnerText
algorithm- 66%
- 41
- 345 B
hast-util-script-supporting
hast utility to check if a node is a script-supporting element- 66%
- 64
- 416 B
hast-util-shift-heading
hast utility to change heading rank (or depth, level)- 66%
- 441
- 922 B
hast-util-menu-state
hast utility to get the state of a menu element- 66%
- 54
- 661 B
hast-util-interactive
hast utility to check if a node is interactive- 65%
- 55
- 417 B
hast-util-truncate
hast utility to truncate the tree to a certain number of characters- 64%
- 250
- 1.1 kB
hast-util-excerpt
hast utility to excerpt the tree to a comment- 64%
- 244
- 1.28 kB
hast-util-from-codemirror
Render styled Lezer syntax trees to hast- 58%
- 49
- 58.4 kB
Find other packages matching hast-util on npm