Socket
Socket
Sign inDemoInstall

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

Package Overview
Dependencies
5
Maintainers
1
Versions
24
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

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

Transform HAST to Babel AST (JSX)


Version published
Maintainers
1
Install size
2.83 MB
Created

Readme

Source

@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

Keywords

FAQs

Last updated on 09 May 2023

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc