{"library":"unist-util-mdx-define","type":"library","category":null,"description":"unist-util-mdx-define is a utility for the Unist ecosystem designed to simplify the process of defining exports within an MDX Abstract Syntax Tree (AST). It abstracts away the complexities of AST manipulation, allowing developers to easily expose variables from remark (mdast), rehype (hast), or recma (estree/esast) plugins. As of the current stable version 1.1.2, the package maintains a steady release cadence for minor and patch updates, focusing on robustness and compatibility within the `unified` and `MDX.js` ecosystems. Its key differentiator is its ability to uniformly inject export declarations across different stages of the MDX compilation pipeline (mdast, hast, estree), ensuring that variables defined at any stage are correctly available in the final MDX module without requiring manual AST traversal or complex insertion logic.","language":"javascript","status":"active","version":"1.1.2","tags":["javascript"],"last_verified":"Wed May 27","install":[{"cmd":"npm install unist-util-mdx-define","imports":["import { define } from 'unist-util-mdx-define'","import { type Plugin } from 'unified'","import type * as mdast from 'mdast'"]},{"cmd":"yarn add unist-util-mdx-define","imports":[]},{"cmd":"pnpm add unist-util-mdx-define","imports":[]}],"homepage":null,"github":"https://github.com/remcohaszing/unist-util-mdx-define","docs":null,"changelog":null,"pypi":null,"npm":"https://www.npmjs.com/package/unist-util-mdx-define","openapi_spec":null,"status_page":null,"smithery":null,"compatibility":{"summary":{"python_range":"18–22","success_rate":0,"avg_install_s":null,"avg_import_s":null,"wheel_type":null},"url":"https://checklist.day/v1/registry/unist-util-mdx-define/compatibility"}}