rdx-cli-0.1.0-beta.7 is not a library.
rdx-cli
Command-line interface for RDX documents — parse, validate, convert, and format .rdx files.
Install
Commands
rdx parse
Parse an .rdx file and output the AST as JSON.
rdx validate
Validate a document against a component schema.
Prints diagnostics to stderr and exits with code 1 if errors are found.
rdx convert
Convert .mdx files to .rdx.
Handles common MDX patterns:
- Removes
import/exportstatements - Converts JSX comments
{/* ... */}to HTML comments<!-- ... --> - Strips JS expression attributes (with warnings)
- Converts
classNametoclass - Preserves valid RDX attributes (
{true},{42},{$var},{{json}})
rdx fmt
Format an .rdx file.
License
MIT OR Apache-2.0