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

    6.2.1 • 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 toBabelAST from '@svgr/hast-util-to-babel-ast'
    
    const hastTree = parse(`<svg></svg>`)
    
    const babelTree = hastToBabelAst(hastTree)

    License

    MIT

    Install

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

    DownloadsWeekly Downloads

    5,352,297

    Version

    6.2.1

    License

    MIT

    Unpacked Size

    73.5 kB

    Total Files

    6

    Last publish

    Collaborators

    • neoziro