@svgr/hast-util-to-babel-ast
TypeScript icon, indicating that this package has built-in type declarations

8.0.0 • Public • Published

@svgr/hast-util-to-babel-ast

Build Status Version MIT License

Transforms HAST into Babel AST.

Install

npm install --save-dev @svgr/hast-util-to-babel-ast

Usage

import { parse } from 'svg-parser'
import hastToBabelAst from '@svgr/hast-util-to-babel-ast'

const hastTree = parse(`<svg></svg>`)

const babelTree = hastToBabelAst(hastTree)

License

MIT

Package Sidebar

Install

npm i @svgr/hast-util-to-babel-ast

Weekly Downloads

7,731,592

Version

8.0.0

License

MIT

Unpacked Size

73 kB

Total Files

6

Last publish

Collaborators

  • neoziro