unist-util-add

JSON →
library 1.2.0 ·javascript
verified Jun 4, 2026

unist-util-add is a utility for the unified ecosystem that simplifies adding and managing extensions for toMarkdown, micromark, and fromMarkdown to data objects. Version 1.2.0, released in 2023, is the current stable version. It provides a single add() function that handles appending extensions to arrays, and it ships with TypeScript types. Unlike manually pushing to arrays, it handles initialization and validation. It requires Node.js >=18 and works with unified, mdast-util-to-markdown, micromark-util-types, and mdast-util-from-markdown.