svg2jsx

v0.1.1
transform svg as jsx constants elements

svg2jsx

transform svg to jsx constants elements.

Build Status NPM Dependencies License

see more in examples, default use in webpack.

Options

pragma

same as http://babeljs.io/docs/plugins/transform-react-jsx/

jsxWrapper(jsxString)

wrapper of jsx string, must be result a string

svgProcessor($svgElm, $)

processor for svgElm, $ is an instance of https://github.com/cheeriojs/cheerio must remove or transform attrs like xmlns:xlink in xml

npm i svg2jsx

Metadata

  • WTFPL
  • Whatever
  • Unknown
  • released 7/29/2016

Downloads

Maintainers