{"_id":"@elliottsj/next-svgr","_rev":"1-0e3025c6cc00072f74595eb0e292f7b2","name":"@elliottsj/next-svgr","dist-tags":{"latest":"0.0.3"},"versions":{"0.0.3":{"name":"@elliottsj/next-svgr","version":"0.0.3","description":"Plugin for NextJS to use SVG with svgr.","main":"index.js","repository":{"type":"git","url":"git+ssh://git@github.com/Anomen/next-svgr.git"},"author":{"name":"Kevin Vicrey","email":"kevin.vicrey@nexu.org"},"license":"MIT","dependencies":{"@svgr/webpack":"^4.3.0"},"devDependencies":{},"gitHead":"ffc749dde4bf365e89092fc51e624c1877c2b16d","bugs":{"url":"https://github.com/Anomen/next-svgr/issues"},"homepage":"https://github.com/Anomen/next-svgr#readme","_id":"@elliottsj/next-svgr@0.0.3","_nodeVersion":"10.16.0","_npmVersion":"6.11.3","dist":{"integrity":"sha512-ppzYSg0rI9DhGkPThk2eRby6ue97WlftxDbVm385uWemjrWWbnJNqhjz2nthPI3FtWFWbGmJ5MHfV2VOyK/QtA==","shasum":"7016c0599bf4f7ad5f615ce13cf0eae9c2127b5e","tarball":"https://registry.npmjs.org/@elliottsj/next-svgr/-/next-svgr-0.0.3.tgz","fileCount":6,"unpackedSize":3927,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJdmk9KCRA9TVsSAnZWagAAsH4QAKLrg5+hpaAEZksnQrjn\n9R3s/JasAOyi7Tv/X1PyduCk31HJ0rh7SS9cp0as6ex0hQEYdapouHvzatzg\n7qfExZF1VCm1H3Qd3OpHtko8QcjCZoTYydsFsX7otW14P2QePkzhT+ZPRYi0\nsJROMmfGMy16Z5NPl3EJYSoznMK5RC5hTbyfU1aJXNY8Y4ImbEWI5xefVK7U\nIPir4ts+W2iEi1KksUBKTAh8M9/11FPqsoFexEsu94Orb6bUGha/h2+tFdfX\npaY4cUckRpJp28fkUrtgLdvyCMGv6UTcrijiM7UGyNgSiWOL58gObd5BOVfF\nxLb9hLV8B+K3uGLDrEx9dC6+hA4Pwyau3J0AufRp6kBH4+0/5VoLZanqqrn8\nYK3Dvfqqu0YOx0ixGyu0mpUk3rPlPrrPyhnp93o8pDC+TDNINBaf04slrgVP\nC8HYcIySb+INBJ9F4d8VRb0cAgint39Jd7j7Xvg/FKOfXtbIsThj2PtFFSjw\nUhcjVIuSUn3OhPIRAWTHT5syc1lYqN7XUNy3fHmur8KZ/95FZpztbCsAzEK3\nqVyOxddlADwCZGywqHMQx7gD+yTCPgamcu8HibqO/lyW+QftrVPZoF6OGyU7\nc3kiyM+MXrF951rLdCfSC7/egWX7IINS9dkw1QjeRdhEMMpYMrRAIlAJjcr2\nKDS+\r\n=XtW4\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIBJr6AUAJ4uS8isLIueetAg9DaXAOHm6goNIsB8gnQjkAiBPPom9EQjPhCUaoUwVpS1JMP94l2aP8zAorgNntlTixQ=="}]},"maintainers":[{"name":"elliottsj","email":"me@elliottsj.com"}],"_npmUser":{"name":"elliottsj","email":"me@elliottsj.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/next-svgr_0.0.3_1570393929647_0.10394439081879026"},"_hasShrinkwrap":false}},"time":{"created":"2019-10-06T20:32:09.431Z","0.0.3":"2019-10-06T20:32:09.777Z","modified":"2022-04-05T07:20:24.437Z"},"maintainers":[{"name":"elliottsj","email":"me@elliottsj.com"}],"description":"Plugin for NextJS to use SVG with svgr.","homepage":"https://github.com/Anomen/next-svgr#readme","repository":{"type":"git","url":"git+ssh://git@github.com/Anomen/next-svgr.git"},"author":{"name":"Kevin Vicrey","email":"kevin.vicrey@nexu.org"},"bugs":{"url":"https://github.com/Anomen/next-svgr/issues"},"license":"MIT","readme":"# :rocket: next-svgr\n\n[![License](https://img.shields.io/npm/l/@svgr/core.svg)](https://github.com/smooth-code/svgr/blob/master/LICENSE)\n[![npm package](https://img.shields.io/npm/v/next-svgr/latest.svg)](https://www.npmjs.com/package/next-svgr)\n[![Dependencies](https://img.shields.io/david/anomen/next-svgr.svg)](https://david-dm.org/anomen/next-svgr)\n[![DevDependencies](https://img.shields.io/david/dev/anomen/next-svgr.svg)](https://david-dm.org/anomen/next-svgr?type=dev)\n\nPlugin for Next to automatically be able to transform `svg` files into components using the excellent [`svgr`](https://github.com/smooth-code/svgr) library.\n\n## Table of contents\n\n- [Installation](#installation)\n- [Usage](#usage)\n\n## Installation\n\n```bash\nnpm install --save next-svgr\n```\n\nOr using yarn:\n\n```bash\nyarn add next-svgr\n```\n\nThen, import the library in your `next.config.js` file.\n\n```js\n// next.config.js\nconst withSvgr = require(\"next-svgr\");\n\nmodule.exports = withSvgr({\n  // your config for other plugins or the general next.js here...\n});\n```\n\nOr you can use it with [`next-compose-plugins`](https://github.com/cyrilwanner/next-compose-plugins) for a cleaner configuration.\n\n```js\n// next.config.js\nconst withPlugins = require(\"next-compose-plugins\");\nconst withSvgr = require(\"next-svgr\");\n\nmodule.exports = withPlugins([\n  withSvgr\n  // your other plugins here\n]);\n```\n\n## Usage\n\nYou can now start importing your SVG files as if they were components:\n\n```js\nimport MyIcon from \"./myicon.svg\";\n\nexport default () => (\n  <div>\n    <MyIcon />\n  </div>\n);\n```\n\nPlease check the [documentation of svgr for more examples](https://github.com/smooth-code/svgr).\n","readmeFilename":"README.md"}