{"bugs":{"url":"https://github.com/gregberge/svgr/issues"},"dist":{"shasum":"d449e4e0ace9f32be1112a24599df0f3353c6427","tarball":"https://registry.npmjs.org/@svgr/core/-/core-6.0.0-alpha.2.tgz","fileCount":6,"integrity":"sha512-jkNWgZWbWWMz9sPx/tDWNR0dIJT4KuWZwEc9BWRPVBUD6a1lF+iLpi3ypQnp4EsYzIpNfLwUQTnabi7miCpFGA==","signatures":[{"sig":"MEUCIDvHPtmr3rXkrJuj/4pY0Tt+esarsCXkcWCC97oCznxKAiEAsWUz2syl9T731GDffGoMUJMl4BrwvzwMALWSAFVIrYc=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":22139},"main":"./dist/index.js","name":"@svgr/core","types":"lib/index.d.ts","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"},"exports":"./dist/index.js","funding":{"url":"https://github.com/sponsors/gregberge","type":"github"},"gitHead":"f729efaad6e2ec22a27972b025737f41cf661045","license":"MIT","scripts":{"build":"rollup -c ../../build/rollup.config.js","reset":"rm -rf dist","prepublishOnly":"npm run reset && npm run build"},"typings":"./dist/index.d.ts","_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@v16.13.0+arm64 (darwin)","description":"Transform SVG into React Components.","directories":{},"maintainers":[{"name":"neoziro","email":"berge.greg@gmail.com"}],"_nodeVersion":"16.13.0","dependencies":{"camelcase":"^6.2.0","cosmiconfig":"^7.0.1","@svgr/plugin-jsx":"^6.0.0-alpha.2"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"@types/svgo":"^2.6.0"},"_npmOperationalInternal":{"tmp":"tmp/core_6.0.0-alpha.2_1635757830915_0.48397089371740765","host":"s3://npm-registry-packages"},"_id":"@svgr/core@6.0.0-alpha.2","version":"6.0.0-alpha.2"}