{"_id":"rollup-plugin-svg","_rev":"5-33490e315800dab9f8cb01c734a5abcc","name":"rollup-plugin-svg","description":"Import SVG images","dist-tags":{"latest":"2.0.0"},"versions":{"1.0.0":{"name":"rollup-plugin-svg","version":"1.0.0","description":"Import SVG images","main":"dist/rollup-plugin-svg.cjs.js","jsnext:main":"dist/rollup-plugin-svg.es.js","files":["src","dist","README.md"],"dependencies":{"rollup-pluginutils":"^1.3.1"},"devDependencies":{"rollup":"^0.26.3","rollup-plugin-buble":"^0.10.0"},"scripts":{"pretest":"npm run build:cjs","build":"npm run build:cjs && npm run build:es","build:cjs":"rollup -c -o dist/rollup-plugin-image.cjs.js -f cjs","build:es":"rollup -c -o dist/rollup-plugin-image.es.js -f es6","prepublish":"npm run build"},"repository":{"type":"git","url":"git+https://github.com/antony/rollup-plugin-svg.git"},"keywords":["rollup","modules","images","svg"],"author":{"name":"Antony Jones"},"license":"MIT","bugs":{"url":"https://github.com/antony/rollup-plugin-svg/issues"},"homepage":"https://github.com/antony/rollup-plugin-svg#readme","gitHead":"6701b1a969077f466f0872856695737536c6aac1","_id":"rollup-plugin-svg@1.0.0","_shasum":"9dd7fcedf205165624d1160162eaf2d67bc9e2cd","_from":".","_npmVersion":"4.2.0","_nodeVersion":"7.9.0","_npmUser":{"name":"antony","email":"aj@desirableobjects.co.uk"},"dist":{"shasum":"9dd7fcedf205165624d1160162eaf2d67bc9e2cd","tarball":"https://registry.npmjs.org/rollup-plugin-svg/-/rollup-plugin-svg-1.0.0.tgz","integrity":"sha512-ykY+GN0fL5vPdIRslr1VYnt6d22rUftXOl5Ojuu+lOOmQfoFr5YFiOFOCo3ydATa4+0/4mXtHcEWkzN6xq0dXA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDC1bUJeMM4QYiESlYBYuEniyudtlLU2PYKx/0dkB74ywIgbM4MT/abyNWLm0NJuvN6GgHfwhVTwQMT0mBpVlwcbDk="}]},"maintainers":[{"name":"antony","email":"aj@desirableobjects.co.uk"}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/rollup-plugin-svg-1.0.0.tgz_1494711486830_0.8984346515499055"},"directories":{}},"1.0.1":{"name":"rollup-plugin-svg","version":"1.0.1","description":"Import SVG images","main":"dist/rollup-plugin-svg.cjs.js","jsnext:main":"dist/rollup-plugin-svg.es.js","files":["src","dist","README.md"],"dependencies":{"rollup-pluginutils":"^1.3.1"},"devDependencies":{"rollup":"^0.26.3","rollup-plugin-buble":"^0.10.0"},"scripts":{"pretest":"npm run build:cjs","build":"npm run build:cjs && npm run build:es","build:cjs":"rollup -c -o dist/rollup-plugin-svg.cjs.js -f cjs","build:es":"rollup -c -o dist/rollup-plugin-svg.es.js -f es6","prepublish":"npm run build"},"repository":{"type":"git","url":"git+https://github.com/antony/rollup-plugin-svg.git"},"keywords":["rollup","modules","images","svg"],"author":{"name":"Antony Jones"},"license":"MIT","bugs":{"url":"https://github.com/antony/rollup-plugin-svg/issues"},"homepage":"https://github.com/antony/rollup-plugin-svg#readme","gitHead":"d2c92ad3e960e84008bd9a445bc2fba44e0e98b7","_id":"rollup-plugin-svg@1.0.1","_shasum":"9de43943cefeacb9ddb09b3ea8ddb9de6552ede1","_from":".","_npmVersion":"4.2.0","_nodeVersion":"7.9.0","_npmUser":{"name":"antony","email":"aj@desirableobjects.co.uk"},"dist":{"shasum":"9de43943cefeacb9ddb09b3ea8ddb9de6552ede1","tarball":"https://registry.npmjs.org/rollup-plugin-svg/-/rollup-plugin-svg-1.0.1.tgz","integrity":"sha512-Ed8cuWSXHKcaFkc8u7PaoVcXaBVxlhIWOa6daBOFPZDvKyQyTwJuILjbAC56rKHHfrX8rmUy8aEcKQob65/EoQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCxzS4wEAXo7pB4tADi6V+dcjqQEZDzyBd+KRYNScPnigIgOEJXYH0fkPPuwKJX8C3veVdoThyojNISdiGCIlWfRuQ="}]},"maintainers":[{"name":"antony","email":"aj@desirableobjects.co.uk"}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/rollup-plugin-svg-1.0.1.tgz_1494712173095_0.6432882202789187"},"directories":{}},"2.0.0":{"name":"rollup-plugin-svg","version":"2.0.0","description":"Import SVG images","main":"dist/rollup-plugin-svg.cjs.js","jsnext:main":"dist/rollup-plugin-svg.es.js","dependencies":{"rollup-pluginutils":"^1.3.1"},"devDependencies":{"rollup":"^0.26.3","rollup-plugin-buble":"^0.10.0","standard":"^12.0.1"},"scripts":{"lint":"standard","pretest":"npm run build:cjs","build":"npm run build:cjs && npm run build:es","build:cjs":"rollup -c -o dist/rollup-plugin-svg.cjs.js -f cjs","build:es":"rollup -c -o dist/rollup-plugin-svg.es.js -f es6","prepublish":"npm run build"},"repository":{"type":"git","url":"git+https://github.com/antony/rollup-plugin-svg.git"},"keywords":["rollup","modules","images","svg"],"author":{"name":"Antony Jones"},"license":"MIT","bugs":{"url":"https://github.com/antony/rollup-plugin-svg/issues"},"homepage":"https://github.com/antony/rollup-plugin-svg#readme","gitHead":"be76efab00b7628edabfd0123b45ca4505a2eda0","_id":"rollup-plugin-svg@2.0.0","_nodeVersion":"10.15.3","_npmVersion":"6.9.0","dist":{"integrity":"sha512-DmE7dSQHo1SC5L2uH2qul3Mjyd5oV6U1aVVkyvTLX/mUsRink7f1b1zaIm+32GEBA6EHu8H/JJi3DdWqM53ySQ==","shasum":"ce11b55e915d5b2190328c4e6632bd6b4fe12ee9","tarball":"https://registry.npmjs.org/rollup-plugin-svg/-/rollup-plugin-svg-2.0.0.tgz","fileCount":5,"unpackedSize":4947,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJdDcjACRA9TVsSAnZWagAAv34P+gKvaDoZj6mgYbRVYxn5\ngCo9aeBJtgHK3vgCttMXB/gFgTyuXAWma4ye63LkDENaV2RXTpzmLnwGHlTG\ncYDdcP5b5L7HohT4pLpQpvUfbTtPTjooTpRKMMWO6p40bxcaxV7zmde+Ylrv\n6yn6C4POnSCIeJPm80NDgVd+BO0VUa7L9e5Qx8hJRRy+i9tvDl8T4vT5FrQw\neValmSKbk4ODm8Ota6FP8bWr6/zAnpLEero3LiB4J0RpjfEVDHsxl7+MG4K3\nWB0Q6Bro3wnvlHx4XgWjlqBLKP9CtWZoMY1Q3xf7Ne97U9+RqsVyMLcTgVK9\nQlhyBuGH3M6hFEkD3TM4zY8Lp2ldYh2EX1ayT0Kot+5Q+pR3Y8KLxLrIxk2b\n2vOPUY0TKtwx+izqL1QYBUvVD5gmaG4xcIjaKwGspuV9Ah38B627rplApKMc\n/Y8agyHdH1HuHmi+kmbEp23B68nyEnBsuGVpiDxrFdrVfgD6GifPYXtGcjGp\nQj0hVq3iRWnQyV+Dorn7rQyjvAuR3ECfcfXaEukJFzCDAlyEmPsevTRLaE6R\nU2irJyr1cp8bLJ93Yo8U2m/YLc4cmTtNomxyf4oyYw6dP8PEWX1cbTI9VNIq\n96OBK494CKlk1ur2XzYkPMjqjIsF4UEBGDpj6LPQMNQWK5MJBqo8Uq70g4QC\nE0z5\r\n=UaIs\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDN03nHKJweW404IU6NOjjcOchm4q7nIOcHmg2ILJdkwwIgbp5NNK++hRoz7967J2XNyl7Z2+m3eBcag2XwbuoQ8Sg="}]},"maintainers":[{"name":"antony","email":"aj@desirableobjects.co.uk"}],"_npmUser":{"name":"antony","email":"aj@desirableobjects.co.uk"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/rollup-plugin-svg_2.0.0_1561184447839_0.6411729695601542"},"_hasShrinkwrap":false}},"readme":"# rollup-plugin-svg\n\nImport SVG files as base64, or as Markup\n\n[![CircleCI](https://circleci.com/gh/antony/github-backup.svg?style=shield)](https://circleci.com/gh/antony/rollup-plugin-svg) [![JavaScript Style Guide](https://img.shields.io/badge/code_style-standard-brightgreen.svg)](https://standardjs.com)\n\n## Installation\n\n```bash\nnpm i -D rollup-plugin-svg\n```\n\n## Usage\n\n```js\n// rollup.config.js\nimport svg from 'rollup-plugin-svg'\n\nexport default {\n  entry: 'src/input.js',\n  dest: 'dist/output.js',\n  plugins: [\n    svg()\n  ]\n}\n```\n\nYou can then use svgs in your bundle thusly:\n\n```js\nimport logo from './desirable-objects.svg'\n\n// Without base64:\ndocument.body.appendChild( logo )\n\n// With base64:\n<img src=\"{logo}\" alt=\"Whatever\" />\n```\n\n## Options:\n\n### base64\n\nDefaults to false.\n\nBas64 encoded SVGs will be 33% larger than the size on disk. You should therefore only use this for small images where the convenience of having them available on startup (e.g. rendering immediately to a canvas without co-ordinating asynchronous loading of several images) outweighs the cost.\n\n## Sources\n\nThis plugin was built (based on the rollup-plugin-image plugin) because it appears that the two existing suitable plugins:\n\n[rollup-plugin-image](https://github.com/rollup/rollup-plugin-image)\n[rollup-plugin-url](https://github.com/rollup/rollup-plugin-url)\n\ndon't seem to work any more. I wanted a simple solution to provide SVG images to [Vudash](http://www.vudash.com)\n\n## License\n\nMIT\n","maintainers":[{"name":"antony","email":"aj@desirableobjects.co.uk"}],"time":{"modified":"2022-06-26T14:02:07.210Z","created":"2017-05-13T21:38:08.724Z","1.0.0":"2017-05-13T21:38:08.724Z","1.0.1":"2017-05-13T21:49:34.958Z","2.0.0":"2019-06-22T06:20:48.014Z"},"homepage":"https://github.com/antony/rollup-plugin-svg#readme","keywords":["rollup","modules","images","svg"],"repository":{"type":"git","url":"git+https://github.com/antony/rollup-plugin-svg.git"},"author":{"name":"Antony Jones"},"bugs":{"url":"https://github.com/antony/rollup-plugin-svg/issues"},"license":"MIT","readmeFilename":"README.md"}