{"_id":"@classicmike/sass-svg-uri","name":"@classicmike/sass-svg-uri","dist-tags":{"latest":"1.0.0"},"versions":{"1.0.0":{"name":"@classicmike/sass-svg-uri","version":"1.0.0","description":"Sass function to encode SVG as a data uri without it being in base64. This package is a fork of the original sass-svg-to-uri package by waldemarfm. It replaces support original SASS implementation for the new SASS implementation","main":"_svg-uri.scss","scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"repository":{"type":"git","url":"git+https://github.com/classicmike/sass-svg-uri.git"},"keywords":["sass","scss","svg","uri"],"author":{"name":"Waldemar Figueroa"},"contributors":[{"name":"Michael Tran"}],"license":"ISC","bugs":{"url":"https://github.com/classicmike/sass-svg-uri/issues"},"homepage":"https://github.com/classicmike/sass-svg-uri#readme","gitHead":"a9b9ae8b1512bebeb40be00e704137ba78c23e6c","_id":"@classicmike/sass-svg-uri@1.0.0","_nodeVersion":"14.17.0","_npmVersion":"6.14.13","dist":{"integrity":"sha512-n1yp6BDEB3Q2PL15Zl8bfDHLMYn2WfoW4GKir35cAWhFsw6pgAEzSQVCIDR5qERBnNH5F5oU0b1BXv6F21/Quw==","shasum":"1ef0f3210a705c80a9a0fcfb0e0ff68d56b67568","tarball":"https://registry.npmjs.org/@classicmike/sass-svg-uri/-/sass-svg-uri-1.0.0.tgz","fileCount":3,"unpackedSize":4217,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDOKWUHHodNmnEESiYWmTMx7i0kyKHfPamVFJr7HvTxiAIgPxgNq4yuA1yAuMjlKaIQ1YB3lOXliR2tUYGzSSSPCnM="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJi0ROUACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmozJRAAgJnKndBo1sENwfzOk2YUtPaVzSNIPa7StAZDTFCyMg4ss1on\r\nRI9PAhTjcVJRX3SPDQ1uxQcol5oXjroKDF8T8wNgRfbCT7/3/G5qeOgPpzjf\r\nBMYQFTf0ZoQaezPhwxHVjMSEQEqrRBZ3UAnm+smyyK2pKSbRwVfWIQ6DP75/\r\n1ogaLVqilHpXduBvBojAWLC26KF3iiaCCroYsBO8I9SOd8Vee5dbjf5t8k4I\r\n+bYa0FOS8MgK0hTF0CZKSiEWtzDrn17wYTOXPtfLvrTZRtNgTJqZ8ZrCOVsz\r\nxPqVETiY6WuVswNdBABUCKdfpWErgpcthAHX7Ip+O+GyQyAc8fE0oQ/hjxpy\r\nccPYQxjWjf2x764RGMFPyGaX+hgZdZ0FiD+vTqPtDeTqHpf4dSmDXL7pQfVO\r\nlQwue7zUT3lmrXbyjbx/a95CflWZlBSq6Xg19VFXx/6h83nnroNZx/k8qLPm\r\nEHV3JNXGSCXu25LQx+iknG2klNj5s93kWg/R8l/CKMEIeLfaApLcJG1ufWlj\r\n2YRMpuJ6h5fD2Orgrc7guALBOBjHcqd/spqOvAMe1XgB1CWOzFHvTZPD3BpC\r\ndkjd/ZB4ReSEzfHVWV/JZ/kJ6l1QgOAjLVIsl/Pp/lRQmqtOb5lp6dG6laxr\r\nHnEe8UEpU1TCCzDzsXPg1bXadUcRZWqGEDg=\r\n=Vl3Q\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"classicmike","email":"mike.the.frontend.developer@gmail.com"},"directories":{},"maintainers":[{"name":"classicmike","email":"mike.the.frontend.developer@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/sass-svg-uri_1.0.0_1657869204110_0.743750599389932"},"_hasShrinkwrap":false}},"time":{"created":"2022-07-15T07:13:24.052Z","1.0.0":"2022-07-15T07:13:24.293Z","modified":"2022-07-15T07:13:24.425Z"},"maintainers":[{"name":"classicmike","email":"mike.the.frontend.developer@gmail.com"}],"description":"Sass function to encode SVG as a data uri without it being in base64. This package is a fork of the original sass-svg-to-uri package by waldemarfm. It replaces support original SASS implementation for the new SASS implementation","homepage":"https://github.com/classicmike/sass-svg-uri#readme","keywords":["sass","scss","svg","uri"],"repository":{"type":"git","url":"git+https://github.com/classicmike/sass-svg-uri.git"},"contributors":[{"name":"Michael Tran"}],"author":{"name":"Waldemar Figueroa"},"bugs":{"url":"https://github.com/classicmike/sass-svg-uri/issues"},"license":"ISC","readme":"# SASS SVG URI\n\n## Description\n**NOTE**: This is **NOT** my original work. \n\nThe intention of this repo is to port the original [waldemarfm/sass-svg-uri](https://github.com/waldemarfm/sass-svg-uri) to be supported in the Dart SASS implementation without it outputting any warnings and errors. The original repo is no longer being maintained from my understanding. Last commit was around 2015.\n\n### So what if I need to support SASS implementations before Dart SASS?\nIf you are after support for node-sass or SASS implementations **_before_** the Dart SASS implementation, please follow the link over here for the original [waldemarfm/sass-svg-uri](https://github.com/waldemarfm/sass-svg-uri) repository and the original [sass-svg-uri](https://www.npmjs.com/package/sass-svg-uri) npm package.\n\n### Original Description Text\nThis is just a simple module with [Jakob Eriksen's function](http://codepen.io/jakob-e/pen/doMoML) for easy use in projects. Uses [Hugo Giraudel's str-replace function](http://sassmeister.com/gist/1b4f2da5527830088e4d) to replace invalid characters in the SVG as a data uri.\n\n## Usage\n\nJust import the file and use the function, no dependencies.\n\n```scss\n@import \"@classicmike/sass-svg-uri/svg-uri\";\n\n.icon {\n    background-image: svg-uri('<svg xmlns=\"http://www.w3.org/2000/svg\"> ... </svg>');\n}\n```\n\nWould output:\n\n```css\n.icon {\n    background-image: url(\"data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg'%3E% ... %3C/svg%3E\");\n}\n```\n\nTo know more:\n\n* [CSS-Tricks: Probably Don’t Base64 SVG](https://css-tricks.com/probably-dont-base64-svg/)\n* [Codepen: Optimizing SVGs in data URIs](http://codepen.io/Tigt/post/optimizing-svgs-in-data-uris)\n\n","readmeFilename":"README.md"}