{"_id":"postcss-write-svg","_rev":"1000629","name":"postcss-write-svg","description":"Write SVGs directly in CSS","dist-tags":{"latest":"3.0.1"},"maintainers":[{"name":"jonathantneal","email":"jonathantneal@hotmail.com"}],"time":{"modified":"2026-09-13T12:14:27.000Z","created":"2015-09-11T23:42:17.815Z","3.0.1":"2016-12-14T18:17:13.049Z","3.0.0":"2016-12-06T19:59:47.619Z","2.1.0":"2016-02-26T19:34:29.664Z","2.0.0":"2015-10-26T19:33:55.281Z","1.1.2":"2015-09-12T17:44:01.643Z","1.1.1":"2015-09-12T00:38:29.454Z","1.1.0":"2015-09-11T23:57:57.986Z","1.0.0":"2015-09-11T23:42:17.815Z"},"users":{},"author":{"name":"Jonathan Neal","email":"jonathantneal@hotmail.com"},"repository":{"type":"git","url":"git+https://github.com/jonathantneal/postcss-write-svg.git"},"versions":{"3.0.1":{"name":"postcss-write-svg","version":"3.0.1","description":"Write SVGs directly in CSS","author":{"name":"Jonathan Neal","email":"jonathantneal@hotmail.com"},"license":"CC0-1.0","repository":{"type":"git","url":"git+https://github.com/jonathantneal/postcss-write-svg.git"},"homepage":"https://github.com/jonathantneal/postcss-write-svg#readme","bugs":{"url":"https://github.com/jonathantneal/postcss-write-svg/issues"},"main":"index.js","files":["index.js"],"scripts":{"lint":"echint && eslint index.js && jscs index.js","prepublish":"npm test","tape":"postcss-tape","test":"npm run lint && postcss-tape"},"engines":{"node":">=6.9.1"},"dependencies":{"postcss":"^5.2.6","postcss-value-parser":"^3.3.0"},"devDependencies":{"echint":"^2.1.0","echint-config-dev":"1.0.0","eslint":"^3.12.1","eslint-config-dev":"1.0.0","jscs":"^3.0.7","jscs-config-dev":"1.0.1","postcss-tape":"1.3.0"},"echint":{"extends":"dev"},"eslintConfig":{"extends":"dev","parserOptions":{"sourceType":"module"}},"jscsConfig":{"preset":"dev"},"keywords":["postcss","css","postcss-plugin","markups","customs","svgs","scalable","vectors","graphics","multiplexing","syntaxes","params","vars","variables"],"gitHead":"6f046936d9faec3b8cf9d8ca69b3a0901b757c42","_id":"postcss-write-svg@3.0.1","_shasum":"76e495d40f2321ff09b56487e03845af737f801a","_from":".","_npmVersion":"4.0.3","_nodeVersion":"7.2.1","_npmUser":{"name":"jonathantneal","email":"jonathantneal@hotmail.com"},"dist":{"shasum":"76e495d40f2321ff09b56487e03845af737f801a","tarball":"http://registry-npm.ywwl.com/postcss-write-svg/download/postcss-write-svg-3.0.1.tgz","integrity":"sha512-trFtC9KrQz7/2+1j7iPOfKBlOeFvr/Ab1j0uc1a+aMhPDjrnmiLZedVRyINdADcjb6epbUEm8zAqMWwWzWmVKQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCyvnKRW+kAZk9ijFNjTmVL5TQNzzNHa2u2r49irDZ9CQIgflVDEwQE7SWMI+TBMMR6gF6yBcOL5LN34uMMUBy6JvM="}],"size":7956,"noattachment":false,"key":"/postcss-write-svg/-/postcss-write-svg-3.0.1.tgz"},"maintainers":[{"name":"jonathantneal","email":"jonathantneal@hotmail.com"}],"_npmOperationalInternal":{"host":"packages-18-east.internal.npmjs.com","tmp":"tmp/postcss-write-svg-3.0.1.tgz_1481739430990_0.07197007187642157"},"directories":{},"publish_time":1481739433049,"deprecated":"Package no longer supported. Contact Support at https://www.npmjs.com/support for more info.","_cnpm_publish_time":1481739433049},"3.0.0":{"name":"postcss-write-svg","version":"3.0.0","description":"Write SVGs directly in CSS","author":{"name":"Jonathan Neal","email":"jonathantneal@hotmail.com"},"license":"CC0-1.0","repository":{"type":"git","url":"git+https://github.com/jonathantneal/postcss-write-svg.git"},"homepage":"https://github.com/jonathantneal/postcss-write-svg#readme","bugs":{"url":"https://github.com/jonathantneal/postcss-write-svg/issues"},"main":"index.js","files":["index.js"],"scripts":{"lint":"echint && eslint index.js && jscs index.js","prepublish":"npm test","tape":"postcss-tape","test":"npm run lint && postcss-tape"},"engines":{"node":">=6.9.1"},"dependencies":{"postcss":"^5.2.6","postcss-value-parser":"^3.3.0"},"devDependencies":{"echint":"^2.1.0","echint-config-dev":"1.0.0","eslint":"^3.11.1","eslint-config-dev":"1.0.0","jscs":"^3.0.7","jscs-config-dev":"1.0.1","postcss-tape":"1.0.1"},"echint":{"extends":"dev"},"eslintConfig":{"extends":"dev","parserOptions":{"sourceType":"module"}},"jscsConfig":{"preset":"dev"},"keywords":["postcss","css","postcss-plugin","markups","customs","svgs","scalable","vectors","graphics","multiplexing","syntaxes","params","vars","variables"],"gitHead":"31079e14f66452f35a4fcfb15f8a8005c4c9869e","_id":"postcss-write-svg@3.0.0","_shasum":"0276ac35c79ba3b41829fd31855cbb110235120e","_from":".","_npmVersion":"3.10.9","_nodeVersion":"7.2.0","_npmUser":{"name":"jonathantneal","email":"jonathantneal@hotmail.com"},"dist":{"shasum":"0276ac35c79ba3b41829fd31855cbb110235120e","tarball":"http://registry-npm.ywwl.com/postcss-write-svg/download/postcss-write-svg-3.0.0.tgz","integrity":"sha512-HIrWG1dGgHBOSTcDqHVccyVOK50QvkYma2n6spjT47KqnvleO8qxbI3mKcVsm4i5McbZYvietgw+Jo/Cd3GcTQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIDp1IHPOHP0gpwWoPMLkNGaF0ztLQwG7EF8Y7hh0p4i0AiAUnNJO+s3DwPMIVzrYcQoyZC8UfiCvIVO6P1zWW1RAlw=="}],"size":7812,"noattachment":false,"key":"/postcss-write-svg/-/postcss-write-svg-3.0.0.tgz"},"maintainers":[{"name":"jonathantneal","email":"jonathantneal@hotmail.com"}],"_npmOperationalInternal":{"host":"packages-18-east.internal.npmjs.com","tmp":"tmp/postcss-write-svg-3.0.0.tgz_1481054385548_0.6143328519538045"},"directories":{},"publish_time":1481054387619,"deprecated":"Package no longer supported. Contact Support at https://www.npmjs.com/support for more info.","_cnpm_publish_time":1481054387619},"2.1.0":{"name":"postcss-write-svg","version":"2.1.0","description":"Write SVGs directly in CSS","keywords":["postcss","css","postcss-plugin","markups","customs","svgs","scalable","vectors","graphics","multiplexing","syntaxes","params","vars","variables"],"author":{"name":"Jonathan Neal","email":"jonathantneal@hotmail.com"},"license":"CC0-1.0","repository":{"type":"git","url":"git+https://github.com/jonathantneal/postcss-write-svg.git"},"homepage":"https://github.com/jonathantneal/postcss-write-svg#readme","bugs":{"url":"https://github.com/jonathantneal/postcss-write-svg/issues"},"dependencies":{"postcss":"^5.0.17","postcss-value-parser":"^3.3.0"},"devDependencies":{"eslint":"^2.2.0","jscs":"^2.10.1","tap-spec":"^4.1.1","tape":"^4.4.0"},"scripts":{"lint":"eslint *.js --ignore-path .gitignore && jscs *.js","tape":"tape test.js | tap-spec","test":"npm run lint && npm run tape"},"engines":{"iojs":">=2.0.0","node":">=0.12.0"},"gitHead":"1d07fabd51bd6ccc0816ee57ba109a59aaf92fb4","_id":"postcss-write-svg@2.1.0","_shasum":"059be86c13b49e46aebb330dcc51258f5456cbe5","_from":".","_npmVersion":"3.6.0","_nodeVersion":"5.4.1","_npmUser":{"name":"jonathantneal","email":"jonathantneal@hotmail.com"},"dist":{"shasum":"059be86c13b49e46aebb330dcc51258f5456cbe5","tarball":"http://registry-npm.ywwl.com/postcss-write-svg/download/postcss-write-svg-2.1.0.tgz","integrity":"sha512-UyofW7snMEK0WJfTVYNlbzUy00i0yFYx0i9RdSP6AtVEBk3wnAcyfWvbZFxcuu2bBCtDHfirAzOvOeMpMIfyog==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCbe9sofbVTQXpINv0RvrpjLwbNKQOuziifRISgPfUNqAIhAMwhD9JkwYdBnnMfAVxW+JiQdD/wl0IVvJ0sTdhcDTUF"}],"size":8498,"noattachment":false,"key":"/postcss-write-svg/-/postcss-write-svg-2.1.0.tgz"},"maintainers":[{"name":"jonathantneal","email":"jonathantneal@hotmail.com"}],"_npmOperationalInternal":{"host":"packages-5-east.internal.npmjs.com","tmp":"tmp/postcss-write-svg-2.1.0.tgz_1456515268265_0.8746544120367616"},"directories":{},"publish_time":1456515269664,"deprecated":"Package no longer supported. Contact Support at https://www.npmjs.com/support for more info.","_cnpm_publish_time":1456515269664},"2.0.0":{"name":"postcss-write-svg","version":"2.0.0","description":"Write SVGs directly in CSS","keywords":["postcss","css","postcss-plugin","markups","customs","svgs","scalable","vectors","graphics","multiplexing","syntaxes","params","vars","variables"],"author":{"name":"Jonathan Neal","email":"jonathantneal@hotmail.com"},"license":"CC0-1.0","repository":{"type":"git","url":"git+https://github.com/jonathantneal/postcss-write-svg.git"},"bugs":{"url":"https://github.com/jonathantneal/postcss-write-svg/issues"},"homepage":"https://github.com/jonathantneal/postcss-write-svg","dependencies":{"postcss":"^5.0.10","postcss-value-parser":"^3.1.1"},"devDependencies":{"eslint":"^1.7.3","tap-spec":"^4.1.0","tape":"^4.2.2"},"scripts":{"lint":"eslint . --ignore-path .gitignore","test-fixtures":"tape test/*.js | tap-spec","test":"npm run lint && npm run test-fixtures"},"engines":{"iojs":">=2.0.0","node":">=0.12.0"},"gitHead":"3c14406594f3228487165bb049486dd3f38c8282","_id":"postcss-write-svg@2.0.0","_shasum":"cf8115d46729af19bcffea947503e0337ffc5a40","_from":".","_npmVersion":"2.14.3","_nodeVersion":"0.12.5","_npmUser":{"name":"jonathantneal","email":"jonathantneal@hotmail.com"},"dist":{"shasum":"cf8115d46729af19bcffea947503e0337ffc5a40","tarball":"http://registry-npm.ywwl.com/postcss-write-svg/download/postcss-write-svg-2.0.0.tgz","integrity":"sha512-lHq6OgNdQlss6AAzXQlNqUK/11UelK9w49MmM0cjTFQvijrKjcKFq9yRNI4nKLMRD5ZhQDELfB68cLXB12aNxA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIDV25Te8+irwYFdlZt4uUwCXbUfnfLse8ccnCDfaxhkTAiEA3LDmw4a4h/cQf7pQSQEjw3PsSFDNvnqQGqz7WKk8pBI="}],"size":6669,"noattachment":false,"key":"/postcss-write-svg/-/postcss-write-svg-2.0.0.tgz"},"maintainers":[{"name":"jonathantneal","email":"jonathantneal@hotmail.com"}],"directories":{},"publish_time":1445888035281,"deprecated":"Package no longer supported. Contact Support at https://www.npmjs.com/support for more info.","_cnpm_publish_time":1445888035281},"1.1.2":{"name":"postcss-write-svg","version":"1.1.2","description":"Write SVGs directly in CSS","keywords":["postcss","css","postcss-plugin","markups","svgs"],"author":{"name":"Jonathan Neal","email":"jonathantneal@hotmail.com"},"license":"CC0-1.0","repository":{"type":"git","url":"git+https://github.com/jonathantneal/postcss-write-svg.git"},"bugs":{"url":"https://github.com/jonathantneal/postcss-write-svg/issues"},"homepage":"https://github.com/jonathantneal/postcss-write-svg","dependencies":{"postcss":"^5.0.4"},"devDependencies":{"chai":"^3.2.0","gulp":"^3.9.0","gulp-eslint":"^1.0.0","gulp-mocha":"^2.1.3"},"scripts":{"test":"gulp"},"gitHead":"20d4709dc36162c1cb1455992ff9583f64dd264d","_id":"postcss-write-svg@1.1.2","_shasum":"6620fbc50b7034cf3468a573cc5ecc88216f4462","_from":".","_npmVersion":"2.14.3","_nodeVersion":"0.12.5","_npmUser":{"name":"jonathantneal","email":"jonathantneal@hotmail.com"},"dist":{"shasum":"6620fbc50b7034cf3468a573cc5ecc88216f4462","tarball":"http://registry-npm.ywwl.com/postcss-write-svg/download/postcss-write-svg-1.1.2.tgz","integrity":"sha512-/2y0ibNOzMYZBKw3+VglKZN+Ttx2fzd8lEi41QvW7ojzAKwOKstCuWKWmE+9eZrIRgiSXwdmRTz1NtVcrqFRpQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQD3R7BGAgZ6d2IBfCSTx1k1egAzYT/cDqz8ey8NyDWegwIhAKwBgxmx3j28SnAXnI5+4dxokeY7sjJzEzZHVnmsBxjV"}],"size":4817,"noattachment":false,"key":"/postcss-write-svg/-/postcss-write-svg-1.1.2.tgz"},"maintainers":[{"name":"jonathantneal","email":"jonathantneal@hotmail.com"}],"directories":{},"publish_time":1442079841643,"deprecated":"Package no longer supported. Contact Support at https://www.npmjs.com/support for more info.","_cnpm_publish_time":1442079841643},"1.1.1":{"name":"postcss-write-svg","version":"1.1.1","description":"Write SVGs directly in CSS","keywords":["postcss","css","postcss-plugin","markups","svgs"],"author":{"name":"Jonathan Neal","email":"jonathantneal@hotmail.com"},"license":"CC0-1.0","repository":{"type":"git","url":"git+https://github.com/jonathantneal/postcss-write-svg.git"},"bugs":{"url":"https://github.com/jonathantneal/postcss-write-svg/issues"},"homepage":"https://github.com/jonathantneal/postcss-write-svg","dependencies":{"postcss":"^5.0.4"},"devDependencies":{"chai":"^3.2.0","gulp":"^3.9.0","gulp-eslint":"^1.0.0","gulp-mocha":"^2.1.3"},"scripts":{"test":"gulp"},"gitHead":"b5461f04aa99aa3663dcda284fa91d320ca3db0c","_id":"postcss-write-svg@1.1.1","_shasum":"7458a7b1c9e2c4f412b3e26cb146c021a349bb4a","_from":".","_npmVersion":"2.14.3","_nodeVersion":"0.12.5","_npmUser":{"name":"jonathantneal","email":"jonathantneal@hotmail.com"},"dist":{"shasum":"7458a7b1c9e2c4f412b3e26cb146c021a349bb4a","tarball":"http://registry-npm.ywwl.com/postcss-write-svg/download/postcss-write-svg-1.1.1.tgz","integrity":"sha512-f6WBzgoBYeEDYHTanPIiPp4Zx5BeoRu005xEv7l0WfOu7NlwGQWmF+JhI96SAYZUdQwvm5dpleOD22hH4Gbidg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCICgb2Ubimc1anDjeK1QiMipQjqdQ0ZWF2DJwc6yiTO7xAiEAj3jUjvwHHej3NcUFKNEye8faX1rl+ohgH/fYa270WBE="}],"size":4759,"noattachment":false,"key":"/postcss-write-svg/-/postcss-write-svg-1.1.1.tgz"},"maintainers":[{"name":"jonathantneal","email":"jonathantneal@hotmail.com"}],"directories":{},"publish_time":1442018309454,"deprecated":"Package no longer supported. Contact Support at https://www.npmjs.com/support for more info.","_cnpm_publish_time":1442018309454},"1.1.0":{"name":"postcss-write-svg","version":"1.1.0","description":"Write SVGs directly in CSS","keywords":["postcss","css","postcss-plugin","markups","svgs"],"author":{"name":"Jonathan Neal","email":"jonathantneal@hotmail.com"},"license":"CC0-1.0","repository":{"type":"git","url":"git+https://github.com/jonathantneal/postcss-write-svg.git"},"bugs":{"url":"https://github.com/jonathantneal/postcss-write-svg/issues"},"homepage":"https://github.com/jonathantneal/postcss-write-svg","dependencies":{"postcss":"^5.0.4"},"devDependencies":{"chai":"^3.2.0","gulp":"^3.9.0","gulp-eslint":"^1.0.0","gulp-mocha":"^2.1.3"},"scripts":{"test":"gulp"},"gitHead":"dadf69aed16945cba9990c83f220527e2b50d3aa","_id":"postcss-write-svg@1.1.0","_shasum":"92007579655b6286bae5c6997acaae2d5f0c4568","_from":".","_npmVersion":"2.14.3","_nodeVersion":"0.12.5","_npmUser":{"name":"jonathantneal","email":"jonathantneal@hotmail.com"},"dist":{"shasum":"92007579655b6286bae5c6997acaae2d5f0c4568","tarball":"http://registry-npm.ywwl.com/postcss-write-svg/download/postcss-write-svg-1.1.0.tgz","integrity":"sha512-PhaaItuka1U7gXbU5fw9nZtRFohHZDg2LdodPJrcQZAPw6XBn8wogh7eQTW4nshpBwsgbOFd56PybmCYxWJvHg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQC9WeJwtBquv84/pHOMeNl6R0aWBCiATBsOMSepPFLoMgIhAOAMun9GONenrDzJoNlSysXEpP5X/Lh92k+QQOzJpQXZ"}],"size":4668,"noattachment":false,"key":"/postcss-write-svg/-/postcss-write-svg-1.1.0.tgz"},"maintainers":[{"name":"jonathantneal","email":"jonathantneal@hotmail.com"}],"directories":{},"publish_time":1442015877986,"deprecated":"Package no longer supported. Contact Support at https://www.npmjs.com/support for more info.","_cnpm_publish_time":1442015877986},"1.0.0":{"name":"postcss-write-svg","version":"1.0.0","description":"Write SVGs directly in CSS","keywords":["postcss","css","postcss-plugin","markups","svgs"],"author":{"name":"Jonathan Neal","email":"jonathantneal@hotmail.com"},"license":"CC0-1.0","repository":{"type":"git","url":"git+https://github.com/jonathantneal/postcss-write-svg.git"},"bugs":{"url":"https://github.com/jonathantneal/postcss-write-svg/issues"},"homepage":"https://github.com/jonathantneal/postcss-write-svg","dependencies":{"postcss":"^5.0.4"},"devDependencies":{"chai":"^3.2.0","gulp":"^3.9.0","gulp-eslint":"^1.0.0","gulp-mocha":"^2.1.3"},"scripts":{"test":"gulp"},"gitHead":"537ee8f9a2e3fa60ba69d0a72a6f4731c082646b","_id":"postcss-write-svg@1.0.0","_shasum":"62c01156b37408b17db9549912090413fdcd80ec","_from":".","_npmVersion":"2.14.3","_nodeVersion":"0.12.5","_npmUser":{"name":"jonathantneal","email":"jonathantneal@hotmail.com"},"dist":{"shasum":"62c01156b37408b17db9549912090413fdcd80ec","tarball":"http://registry-npm.ywwl.com/postcss-write-svg/download/postcss-write-svg-1.0.0.tgz","integrity":"sha512-dHcl+6Sh1Ast+NzBPKnXaenGAAL881nIZuqrJJhwW7DdVRIcEhuRlneUzUcNk2Y+UHuwbkMOJhRHMNMdvEU0yA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCmnXlq0Ye+H0RFFabpedRGZ/NxM3KZ4JC1tCGgkgiCrwIhAMTBpcM0jrltP8TbZTTsigpnJHZ/Nxsm+KfP88T048ig"}],"size":4585,"noattachment":false,"key":"/postcss-write-svg/-/postcss-write-svg-1.0.0.tgz"},"maintainers":[{"name":"jonathantneal","email":"jonathantneal@hotmail.com"}],"directories":{},"publish_time":1442014937815,"deprecated":"Package no longer supported. Contact Support at https://www.npmjs.com/support for more info.","_cnpm_publish_time":1442014937815}},"readme":"# Write SVG <a href=\"https://github.com/postcss/postcss\"><img src=\"https://postcss.github.io/postcss/logo.svg\" alt=\"PostCSS Logo\" width=\"90\" height=\"90\" align=\"right\"></a>\n\n[![NPM Version][npm-img]][npm-url]\n[![Build Status][cli-img]][cli-url]\n[![Licensing][lic-image]][lic-url]\n[![Changelog][log-image]][log-url]\n[![Gitter Chat][git-image]][git-url]\n\n[Write SVG] lets you write SVGs directly in CSS.\n\n```css\n/* before */\n\n@svg square {\n\t@rect {\n\t\tfill: var(--color, black);\n\t\twidth: var(--size);\n\t\theight: var(--size);\n\t}\n}\n\n.example {\n\tbackground: svg(square param(--color green) param(--size 100%)) center / cover;\n}\n\n/* after */\n\n.example {\n\tbackground: url(\"data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg'%3E%3Crect fill='green' width='100%25' height='100%25'/%3E%3C/svg%3E\") center / cover;\n}\n```\n\n`@svg` at-rules generate SVG elements available to CSS. Within an `@svg`, descendant at-rules (like `@rect`) are interpreted as elements, while declarations (like `width`) are interpreted as attributes.\n\nThe `svg()` function renders an `@svg` as a data `url()`. `var()` functions within an `@svg` honor the variables passed in through `param()` functions.\n\n## Options\n\n#### `utf8`\n\nType: `Boolean`  \nDefault: `true`\n\nAllows you to define whether UTF-8 or base64 encoding will be used.\n\n```css\n/* before { utf8: false } */\n\n@svg square {\n\t@rect {\n\t\tfill: black;\n\t\twidth: 100%;\n\t\theight: 100%;\n\t}\n}\n\n.example {\n\tbackground: svg(square);\n}\n\n/* after */\n\n.example {\n\tbackground: url(\"data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjxyZWN0IGZpbGw9ImJsYWNrIiB3aWR0aD0iMTAwJSIgaGVpZ2h0PSIxMDAlIi8+PC9zdmc+\");\n}\n```\n\n## Usage\n\nAdd [Write SVG] to your build tool:\n\n```bash\nnpm install jonathantneal/postcss-write-svg --save-dev\n```\n\n#### Node\n\n```js\nrequire('postcss-write-svg').process(YOUR_CSS, { /* options */ });\n```\n\n#### PostCSS\n\nAdd [PostCSS] to your build tool:\n\n```bash\nnpm install postcss --save-dev\n```\n\nLoad [Write SVG] as a PostCSS plugin:\n\n```js\npostcss([\n\trequire('postcss-write-svg')({ /* options */ })\n]).process(YOUR_CSS, /* options */);\n```\n\n#### Gulp\n\nAdd [Gulp PostCSS] to your build tool:\n\n```bash\nnpm install gulp-postcss --save-dev\n```\n\nEnable [Write SVG] within your Gulpfile:\n\n```js\nvar postcss = require('gulp-postcss');\n\ngulp.task('css', function () {\n\treturn gulp.src('./src/*.css').pipe(\n\t\tpostcss([\n\t\t\trequire('postcss-write-svg')({ /* options */ })\n\t\t])\n\t).pipe(\n\t\tgulp.dest('.')\n\t);\n});\n```\n\n#### Grunt\n\nAdd [Grunt PostCSS] to your build tool:\n\n```bash\nnpm install grunt-postcss --save-dev\n```\n\nEnable [Write SVG] within your Gruntfile:\n\n```js\ngrunt.loadNpmTasks('grunt-postcss');\n\ngrunt.initConfig({\n\tpostcss: {\n\t\toptions: {\n\t\t\tuse: [\n\t\t\t\trequire('postcss-write-svg')({ /* options */ })\n\t\t\t]\n\t\t},\n\t\tdist: {\n\t\t\tsrc: '*.css'\n\t\t}\n\t}\n});\n```\n\n[npm-url]: https://www.npmjs.com/package/postcss-write-svg\n[npm-img]: https://img.shields.io/npm/v/postcss-write-svg.svg\n[cli-url]: https://travis-ci.org/jonathantneal/postcss-write-svg\n[cli-img]: https://img.shields.io/travis/jonathantneal/postcss-write-svg.svg\n[lic-url]: LICENSE.md\n[lic-image]: https://img.shields.io/npm/l/postcss-write-svg.svg\n[log-url]: CHANGELOG.md\n[log-image]: https://img.shields.io/badge/changelog-md-blue.svg\n[git-url]: https://gitter.im/postcss/postcss\n[git-image]: https://img.shields.io/badge/chat-gitter-blue.svg\n\n[Write SVG]: https://github.com/jonathantneal/postcss-write-svg\n[PostCSS]: https://github.com/postcss/postcss\n[Gulp PostCSS]: https://github.com/postcss/gulp-postcss\n[Grunt PostCSS]: https://github.com/nDmitry/grunt-postcss\n","_attachments":{},"homepage":"https://github.com/jonathantneal/postcss-write-svg#readme","bugs":{"url":"https://github.com/jonathantneal/postcss-write-svg/issues"},"license":"CC0-1.0"}