jsx-ast-helpers
v0.0.1
Published
A set of helper functions for processing JSX AST nodes with Babel and TypeScript
Maintainers
Readme
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-helpersUsage
import { getJSXElementName } from 'jsx-ast-helpers';
// Example: Process JSX AST in a Babel plugin
const elementName = getJSXElementName(jsxElement);Build
npm run buildLicense
MIT
