{"_id":"@constgen/neutrino-svgr-loader","_rev":"1-61f70f6e49144e93f791b780fc330562","name":"@constgen/neutrino-svgr-loader","dist-tags":{"latest":"1.10.0"},"versions":{"1.10.0":{"name":"@constgen/neutrino-svgr-loader","version":"1.10.0","description":"Neutrino middleware for SVG components","main":"index.js","author":{"name":"Constantine Genchevsky","email":"const.gen@gmail.com"},"license":"GPL-3.0","repository":{"type":"git","url":"git+https://github.com/constgen/constgen-neutrino.git"},"homepage":"https://github.com/constgen/constgen-neutrino/tree/master/packages/svgr-loader","keywords":["neutrino","neutrino-middleware","middleware","preset","webpack","svgr-loader","svgr"],"dependencies":{"@svgr/webpack":"~5.4.0"},"peerDependencies":{"neutrino":"^9.0.0","webpack":"^4.0.0"},"engines":{"node":">=10","npm":">=5.4.0"},"bugs":{"url":"https://github.com/constgen/constgen-neutrino/issues"},"_id":"@constgen/neutrino-svgr-loader@1.10.0","_nodeVersion":"12.19.0","_npmVersion":"6.14.8","dist":{"integrity":"sha512-ymY5WOWZ7KmTnMtiVhnZ9teVuZtr1QApAYAwlf0E+JbWiieiy+5544w4GgQO+YNySwWOf+GA1hZdzQz7hByyXA==","shasum":"31aab8f42933e8debb1e387e7bc08a612b2b1ee5","tarball":"https://registry.npmjs.org/@constgen/neutrino-svgr-loader/-/neutrino-svgr-loader-1.10.0.tgz","fileCount":4,"unpackedSize":39233,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJffyzvCRA9TVsSAnZWagAA6oYP/jsrt+7dL9294AfsjTH4\nWOHdywoHCX0i86/ngLF/4OFnRSxRb2hagPhQ/e/U/kQk5aEfZ2RXHQU/lBRn\noNVjsBQ9OpV86NRinTuCd/t0duX2jy4pT3WJkj4tQxNzF8eqDrwjGRSGIpkF\nvW9O4NOdTTFz1+nengVV43X788JYkZRxQj7YolYsaxWc2fGNa6f3YS6Uh+CN\nAbv2rNXFnnMvhndbdulpQM1+BfxrX14fj5mWhc23/B7n/D6MfAW/tc891qUe\nuxdBLxoJzUMeNbH0cCDTZ6x/GhMryOOspceP3KohZsJCZTah1e1p1RyjKReE\nyq07QFYUS6NYyj//Gr3FpvL+xAD7QuhGEhEbdLjHjDSO1Ok2xZYx6K/S8HLY\nieI51ScLZVXPRB+bzKnFzha47WPiKNPcPv1JPdqc4ITXHSMoQuklFCsjXfyD\nSnijZGUFQI+m6a8jvkAmCR/9jstB8aEA7/1IS3pUwOPd+Z/5Bx0DbXJEn5I5\n66uYU181a5tQXX+U+G+fr3aBYH4S9a3niO70NdCH13B+4UdAZRpyo30rFg2b\n2Uaxcm0T/Gn7sQUdE0SVa7bjSjvqyVE/Sid1QxEQrMT7Cfh4kkfA6ZfhdJ4b\nr50Kac0MHPaalsUUCt4AbVQIOeEB+F/fx0xSiByzUY4RciaQbe3H7FiTnmFp\nxA4w\r\n=Pj7Z\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIELAeWjI8/UvrFWmYaEDHsaTOyABjn7nsT2kQpnOpYOiAiEAgl8xnHEshV3rmiHlvyx6oMZnlAo+T73D9Y1SyhLPbp8="}]},"maintainers":[{"name":"constgen","email":"const.gen@gmail.com"}],"_npmUser":{"name":"constgen","email":"const.gen@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/neutrino-svgr-loader_1.10.0_1602170094490_0.051075383393448526"},"_hasShrinkwrap":false}},"time":{"created":"2020-10-08T15:14:54.449Z","1.10.0":"2020-10-08T15:14:54.617Z","modified":"2022-04-05T00:59:58.909Z"},"maintainers":[{"name":"constgen","email":"const.gen@gmail.com"}],"description":"Neutrino middleware for SVG components","homepage":"https://github.com/constgen/constgen-neutrino/tree/master/packages/svgr-loader","keywords":["neutrino","neutrino-middleware","middleware","preset","webpack","svgr-loader","svgr"],"repository":{"type":"git","url":"git+https://github.com/constgen/constgen-neutrino.git"},"author":{"name":"Constantine Genchevsky","email":"const.gen@gmail.com"},"bugs":{"url":"https://github.com/constgen/constgen-neutrino/issues"},"license":"GPL-3.0","readme":"# @constgen/neutrino-svgr-loader\n\n[![npm](https://img.shields.io/npm/v/@constgen/neutrino-svgr-loader.svg)](https://www.npmjs.com/package/@constgen/neutrino-svgr-loader)\n[![npm](https://img.shields.io/npm/dt/@constgen/neutrino-svgr-loader.svg)](https://www.npmjs.com/package/@constgen/neutrino-svgr-loader)\n\n[Neutrino](https://neutrino.js.org) middleware for SVG components. You will be able to use SVGs as React components using named imports\n\n```jsx\nimport logoImage, { ReactComponent as Logo } from './logo.svg'\n\nexport default function () {\n   return (\n      <>\n         This is the logo component\n         <Logo width=\"200\" height=\"50\" title=\"Title text\" className=\"logo\" />\n\n         This is the logo image\n         <img src={logoImage} width=\"200\" height=\"50\" alt=\"Title text\" className=\"logo\" />\n      </>\n   )\n}\n```\n\n## Features\n\n- exports React components from SVG modules as named exports\n\n## Requirements\n\n- Node.js v10+\n- Neutrino v9\n- Webpack v4\n\n## Installation\n\n`@constgen/neutrino-svgr-loader` can be installed from NPM. You should install it to `\"dependencies\"` (--save) or `\"devDependncies\"` (--save-dev) depending on your goal.\n\n```bash\nnpm install --save @constgen/neutrino-svgr-loader\n```\n\n## Usage\n\n### In preset\n\nRequire this package and plug it into Neutrino. The middleware has no options:\n\n```js\nlet svgrLoader = require('@constgen/neutrino-svgr-loader')\n\nneutrino.use(svgrLoader())\n```\n\n### In **neutrinorc**\n\nThe middleware also may be used together with another presets in Neutrino rc-file, e.g.:\n\n**.neutrinorc.js**\n\n```js\nlet svgrLoader = require('@constgen/neutrino-svgr-loader')\n\nmodule.exports = {\n   use: [\n      svgrLoader()\n   ]\n}\n```","readmeFilename":"README.md"}