{"bugs":{"url":"https://github.com/gregberge/svgr/issues"},"dist":{"shasum":"e5e7bdb9352de88d2fd3247a098a0e3c16f6ce4d","tarball":"https://registry.npmjs.org/@svgr/core/-/core-6.0.0-alpha.0.tgz","fileCount":10,"integrity":"sha512-5EMaF24QO8OhS6oWG+9lnnypq/FNqcLMz9wgrQDJeh2FWi/qFB0hAJGO0i8Bp3JK+RVlblzW7jmHxVhiTG3SLg==","signatures":[{"sig":"MEYCIQCP2MNheBqGhg2YZf2bL5tIqkoYy7NV7rNOF+mdQo6WlAIhAKBQ0KSt7Xl8f7Vc8gVFkfkO+Rht4GWjWZbYhLw9O5VF","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":20838},"main":"lib/index.js","name":"@svgr/core","types":"src","author":{"name":"Greg Bergé","email":"berge.greg@gmail.com"},"readme":"# @svgr/core\n\n[![Build Status][build-badge]][build]\n[![version][version-badge]][package]\n[![MIT License][license-badge]][license]\n\nNode API of SVGR.\n\n```\nnpm install @svgr/core\n```\n\n## Usage\n\n```js\nimport svgr from '@svgr/core'\n\nconst svgCode = `\n<svg xmlns=\"http://www.w3.org/2000/svg\"\n  xmlns:xlink=\"http://www.w3.org/1999/xlink\">\n  <rect x=\"10\" y=\"10\" height=\"100\" width=\"100\"\n    style=\"stroke:#ff0000; fill: #0000ff\"/>\n</svg>\n`\n\nsvgr(svgCode, { icon: true }, { componentName: 'MyComponent' }).then(\n  (jsCode) => {\n    console.log(jsCode)\n  },\n)\n```\n\nUse `svgr.sync(code, config, state)` if you would like to use sync version.\n\n### Plugins\n\nBy default `@svgr/core` doesn't include `svgo` and `prettier` plugins, if you want them, you have to install them and include them in config.\n\n```js\nsvgr(svgCode, {\n  plugins: ['@svgr/plugin-svgo', '@svgr/plugin-jsx', '@svgr/plugin-prettier'],\n}).then((jsCode) => {\n  console.log(jsCode)\n})\n```\n\n## License\n\nMIT\n\n[build-badge]: https://img.shields.io/travis/smooth-code/svgr.svg?style=flat-square\n[build]: https://travis-ci.org/smooth-code/svgr\n[version-badge]: https://img.shields.io/npm/v/@svgr/core.svg?style=flat-square\n[package]: https://www.npmjs.com/package/@svgr/core\n[license-badge]: https://img.shields.io/npm/l/@svgr/core.svg?style=flat-square\n[license]: https://github.com/smooth-code/svgr/blob/master/LICENSE\n\n```\n\n```\n","engines":{"node":">=10"},"funding":{"url":"https://github.com/sponsors/gregberge","type":"github"},"gitHead":"4ab46a3a4f7b9aa589e991c98058473b8bd48af6","license":"MIT","scripts":{"build":"babel --config-file ../../babel.config.js -d lib --ignore \"**/*.test.js\" src","prebuild":"rm -rf lib/","prepublishOnly":"yarn run build"},"_npmUser":{"name":"neoziro","email":"berge.greg@gmail.com"},"homepage":"https://react-svgr.com","keywords":["svgr","svg","react","core","api"],"repository":{"url":"git+https://github.com/gregberge/svgr.git#master","type":"git"},"_npmVersion":"lerna/4.0.0/node@v14.17.6+x64 (darwin)","description":"Transform SVG into React Components.","directories":{},"maintainers":[{"name":"neoziro","email":"berge.greg@gmail.com"}],"_nodeVersion":"14.17.6","dependencies":{"camelcase":"^6.2.0","cosmiconfig":"^7.0.1","@svgr/plugin-jsx":"^6.0.0-alpha.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/core_6.0.0-alpha.0_1632520493668_0.7237818271604315","host":"s3://npm-registry-packages"},"_id":"@svgr/core@6.0.0-alpha.0","version":"6.0.0-alpha.0"}