0.0.1 • Published 6 months ago
jsx-ast-helpers v0.0.1
jsx-ast-helpers
A set of helper functions for processing JSX AST nodes using Babel and TypeScript.
Features
- Access and manipulate JSX element attributes
- Insert, replace, and delete JSX elements
- Query and update tracking data
- Deep copy JSX elements
- And more...
Installation
npm install jsx-ast-helpers
Usage
import { getJSXElementName } from 'jsx-ast-helpers';
// Example: Process JSX AST in a Babel plugin
const elementName = getJSXElementName(jsxElement);
Build
npm run build
License
MIT
0.0.1
6 months ago