A curated list of awesome syntax-tree, unist, mdast (markdown), hast (HTML), xast (XML), esast (JS), and nlcst (prose) resources.
syntax-tree is an organization housing unist and its main implementations mdast, hast, xast, esast, and nlcst. unist is a specification for syntax trees that comes with a big ecosystem of utilities in JavaScript for working with those trees. On top of unist and its implementations sits the rest of unified that does all kinds of things to process content.
- Official
- unist utilities
- mdast utilities
- hast utilities
- xast utilities
- esast utilities
- nlcst utilities
- Related lists
- License
- syntax-tree - Organization.
- unist - unist specification.
- mdast - mdast (markdown) specification.
- hast - hast (HTML) specification.
- xast - xast (XML) specification.
- esast - esast (JS) specification.
- nlcst - nlcst (prose) specification.
- unified - Ecosystem.
- unifiedjs.com - Ecosystem website.
- unist-builder - Create trees with a nice syntax.
- unist-util-is - Check if a node passes a test.
- unist-util-visit - Visit nodes.
- unist-util-map - Create a new tree by mapping all nodes.
- unist-util-filter - Create a new tree with nodes that pass a filter.
- unist-util-remove - Remove nodes from a tree.
- unist-util-select - Select nodes with CSS-like selectors.
- unist-util-inspect - Inspect nodes.
- unist-util-assert - Assert nodes.
- mdast-util-to-hast - Transform to hast.
- mdast-util-to-nlcst - Transform to nlcst.
- mdast-util-to-string - Get the plain text content of a node.
- mdast-util-definitions - Find definitions.
- mdast-util-toc - Generate a Table of Contents.
- mdast-normalize-headings - Fix heading depths.
- mdast-util-heading-range - Use heading as ranges.
- mdast-zone - Use comments as ranges and markers.
- mdast-util-assert - Assert nodes.
- hastscript - Create trees with a nice syntax.
- hast-util-from-dom - Transform from a DOM tree.
- hast-util-from-text - Set plain-text content.
- hast-util-to-dom - Transform to a DOM tree.
- hast-util-to-jsx-runtime - Transform to preact, react, solid, svelte, vue, etc.
- hast-util-to-html - Transform to an HTML string.
- hast-util-to-mdast - Transform to mdast.
- hast-util-to-nlcst - Transform to nlcst.
- hast-util-to-text - Get plain-text content.
- hast-util-to-xast - Transform to xast.
- hast-util-find-and-replace - Find and replace text in a tree.
- hast-util-sanitize - Sanitize a tree.
- hast-util-select -
querySelector
,querySelectorAll
, andmatches
. - hast-util-has-property - Check if a node has a property.
- hast-util-is-element - Check if a node is a (certain) element.
- hast-util-assert - Assert nodes.
- xastscript - Create xast trees.
- xast-util-feed - Build a feed (RSS, Atom).
- xast-util-from-xml - Transform from an XML string.
- xast-util-sitemap - Build a sitemap.
- xast-util-to-xml - Transform to an XML string.
- estree-util-attach-comments - Attach comments to the tree.
- estree-util-build-jsx - Turn JSX into function calls.
- esast-util-from-js - Transform from a JavaScript string.
- estree-util-to-js - Transform to a JavaScript string.
- estree-util-value-to-estree - Turn a JavaScript value into an estree expression
- nlcst-search - Search for patterns in a tree.
- nlcst-to-string - Transform to a string.
- nlcst-is-literal - Check if a node is meant literally.
- nlcst-normalize - Normalize a word for easier comparison.
- nlcst-test - Assert nodes.