{"_id":"postcss-urlrewrite","_rev":"3670317","name":"postcss-urlrewrite","description":"PostCSS plugin for easy url() rewriting.","dist-tags":{"latest":"0.3.0"},"maintainers":[{"name":"iadramelk","email":""}],"time":{"modified":"2025-02-13T05:40:56.000Z","created":"2014-08-13T16:20:11.257Z","0.3.0":"2024-08-12T06:35:36.004Z","0.2.2":"2017-08-30T21:52:57.590Z","0.2.1":"2017-01-05T19:31:56.486Z","0.2.0":"2015-12-20T18:20:07.291Z","0.1.1":"2014-08-13T16:20:11.257Z"},"users":{},"repository":{"type":"git","url":"git+https://github.com/iAdramelk/postcss-urlrewrite.git"},"versions":{"0.3.0":{"name":"postcss-urlrewrite","description":"PostCSS plugin for easy url() rewriting.","version":"0.3.0","main":"index.js","repository":{"type":"git","url":"git+https://github.com/iAdramelk/postcss-urlrewrite.git"},"authors":["Alexey Ivanov <mail@alexeyivanov.info>"],"license":"MIT","engines":{"node":">=16"},"scripts":{"test":"mocha --reporter list"},"keywords":["postcss","css"],"dependencies":{"postcss-helpers":"^0.3.3"},"devDependencies":{"mocha":"^10.7.3","postcss":"^8.4.41"},"gitHead":"506578e526d79a6054d7dcec0f11fcfe8da45813","bugs":{"url":"https://github.com/iAdramelk/postcss-urlrewrite/issues"},"homepage":"https://github.com/iAdramelk/postcss-urlrewrite#readme","_id":"postcss-urlrewrite@0.3.0","_nodeVersion":"16.15.1","_npmVersion":"8.11.0","dist":{"shasum":"53a1f4fb684ab3832602fc1c3dbdbfe112bf0980","size":6130,"noattachment":false,"key":"/postcss-urlrewrite/-/postcss-urlrewrite-0.3.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/postcss-urlrewrite/download/postcss-urlrewrite-0.3.0.tgz"},"_npmUser":{"name":"iadramelk","email":"mail@alexeyivanov.info"},"directories":{},"maintainers":[{"name":"iadramelk","email":""}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/postcss-urlrewrite_0.3.0_1723444535871_0.5802882302992267"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2024-08-12T06:35:36.004Z","publish_time":1723444536004,"_source_registry_name":"default","_cnpm_publish_time":1723444536004},"0.2.2":{"name":"postcss-urlrewrite","description":"PostCSS plugin for easy url() rewriting.","version":"0.2.2","main":"index.js","repository":{"type":"git","url":"git+https://github.com/iAdramelk/postcss-urlrewrite.git"},"authors":["Alexey Ivanov <iadramelk@gmail.com>"],"license":"MIT","engines":{"node":">=0.12.9"},"scripts":{"test":"mocha --reporter list"},"keywords":["postcss","css"],"dependencies":{"postcss-helpers":"^0.3.2"},"devDependencies":{"mocha":"^3.5.0","postcss":"^6.0.10"},"gitHead":"63e7669adbaec92f9aa8f50b66986cde93dae599","bugs":{"url":"https://github.com/iAdramelk/postcss-urlrewrite/issues"},"homepage":"https://github.com/iAdramelk/postcss-urlrewrite#readme","_id":"postcss-urlrewrite@0.2.2","_npmVersion":"5.3.0","_nodeVersion":"8.4.0","_npmUser":{"name":"iadramelk","email":"iadramelk@gmail.com"},"dist":{"shasum":"bad53f4de04bc0812f278733314bd3062ed36bd4","size":9302,"noattachment":false,"key":"/postcss-urlrewrite/-/postcss-urlrewrite-0.2.2.tgz","tarball":"http://registry.cnpm.dingdandao.com/postcss-urlrewrite/download/postcss-urlrewrite-0.2.2.tgz"},"maintainers":[{"name":"iadramelk","email":""}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/postcss-urlrewrite-0.2.2.tgz_1504129976719_0.25573058403097093"},"directories":{},"publish_time":1504129977590,"_hasShrinkwrap":false,"_cnpm_publish_time":1504129977590,"_cnpmcore_publish_time":"2021-12-17T10:39:15.523Z"},"0.2.1":{"name":"postcss-urlrewrite","description":"PostCSS plugin for easy url() rewriting.","version":"0.2.1","main":"index.js","repository":{"type":"git","url":"git+https://github.com/iAdramelk/postcss-urlrewrite.git"},"authors":["Alexey Ivanov <iadramelk@gmail.com>"],"license":"MIT","engines":{"node":">=0.12.9"},"scripts":{"test":"mocha --reporter list"},"keywords":["postcss","css"],"dependencies":{"postcss-helpers":"~0.3.1"},"devDependencies":{"mocha":"^3.2.0","postcss":"^5.2.8"},"gitHead":"5621b5f8026b93a8f527aa92938a68e04b9e462e","bugs":{"url":"https://github.com/iAdramelk/postcss-urlrewrite/issues"},"homepage":"https://github.com/iAdramelk/postcss-urlrewrite#readme","_id":"postcss-urlrewrite@0.2.1","_shasum":"31fad47d35c390d3160308421caba0e94e31122f","_from":".","_npmVersion":"3.10.10","_nodeVersion":"7.3.0","_npmUser":{"name":"iadramelk","email":"iadramelk@gmail.com"},"dist":{"shasum":"31fad47d35c390d3160308421caba0e94e31122f","size":9237,"noattachment":false,"key":"/postcss-urlrewrite/-/postcss-urlrewrite-0.2.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/postcss-urlrewrite/download/postcss-urlrewrite-0.2.1.tgz"},"maintainers":[{"name":"iadramelk","email":""}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/postcss-urlrewrite-0.2.1.tgz_1483644714617_0.0020053857006132603"},"directories":{},"publish_time":1483644716486,"_hasShrinkwrap":false,"_cnpm_publish_time":1483644716486,"_cnpmcore_publish_time":"2021-12-17T10:39:16.310Z"},"0.2.0":{"name":"postcss-urlrewrite","description":"PostCSS plugin for easy url() rewriting.","version":"0.2.0","main":"index.js","repository":{"type":"git","url":"git+https://github.com/iAdramelk/postcss-urlrewrite.git"},"authors":["Alexey Ivanov <iadramelk@gmail.com>"],"license":"MIT","engines":{"node":">=0.12.9"},"scripts":{"test":"mocha --reporter list"},"keywords":["postcss","css"],"dependencies":{"postcss-helpers":"~0.3.1"},"devDependencies":{"mocha":"~2.3.4","postcss":"~5.0.13"},"gitHead":"f4f9e4b128ee2c68be4d607be5d30771b8764c1a","bugs":{"url":"https://github.com/iAdramelk/postcss-urlrewrite/issues"},"homepage":"https://github.com/iAdramelk/postcss-urlrewrite#readme","_id":"postcss-urlrewrite@0.2.0","_shasum":"91b0f06f6ad677b7a3bef6b6270488d12ca4935f","_from":".","_npmVersion":"3.3.12","_nodeVersion":"5.3.0","_npmUser":{"name":"iadramelk","email":"iadramelk@gmail.com"},"maintainers":[{"name":"iadramelk","email":""}],"dist":{"shasum":"91b0f06f6ad677b7a3bef6b6270488d12ca4935f","size":6195,"noattachment":false,"key":"/postcss-urlrewrite/-/postcss-urlrewrite-0.2.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/postcss-urlrewrite/download/postcss-urlrewrite-0.2.0.tgz"},"directories":{},"publish_time":1450635607291,"_hasShrinkwrap":false,"_cnpm_publish_time":1450635607291,"_cnpmcore_publish_time":"2021-12-17T10:39:16.510Z"},"0.1.1":{"name":"postcss-urlrewrite","description":"PostCSS plugin for easy url() rewriting.","version":"0.1.1","main":"index.js","repository":{"type":"git","url":"https://github.com/iAdramelk/postcss-urlrewrite.git"},"authors":["Alexey Ivanov <iadramelk@gmail.com>"],"license":"MIT","engines":{"node":">=0.10.0"},"scripts":{"test":"mocha --reporter list"},"keywords":["postcss","css"],"dependencies":{"postcss-helpers":"~0.2.0"},"devDependencies":{"mocha":"~1.21.4","postcss":"~2.1.2"},"gitHead":"4fe7cfe41b7f383fff219119fed4656c850da31d","bugs":{"url":"https://github.com/iAdramelk/postcss-urlrewrite/issues"},"homepage":"https://github.com/iAdramelk/postcss-urlrewrite","_id":"postcss-urlrewrite@0.1.1","_shasum":"26cc45e5e63695e2465b677e25cab2db1e86bb30","_from":".","_npmVersion":"1.4.23","_npmUser":{"name":"iadramelk","email":"iadramelk@gmail.com"},"maintainers":[{"name":"iadramelk","email":""}],"dist":{"shasum":"26cc45e5e63695e2465b677e25cab2db1e86bb30","size":6281,"noattachment":false,"key":"/postcss-urlrewrite/-/postcss-urlrewrite-0.1.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/postcss-urlrewrite/download/postcss-urlrewrite-0.1.1.tgz"},"directories":{},"publish_time":1407946811257,"_hasShrinkwrap":false,"_cnpm_publish_time":1407946811257,"_cnpmcore_publish_time":"2021-12-17T10:39:16.716Z"}},"readme":"## postcss-urlrewrite [![Build Status](https://secure.travis-ci.org/iAdramelk/postcss-urlrewrite.png)](https://travis-ci.org/iAdramelk/postcss-urlrewrite)\n\n> PostCSS plugin for easy url() rewriting.\n\n### Getting Started\n\n\n```shell\nnpm install postcss-urlrewrite\n```\n\n### Example\n\nUsage example:\n\n```javascript\n// dependencies\nvar fs = require( 'fs' );\nvar postcss = require( 'postcss' );\nvar urlrewrite = require( 'postcss-urlrewrite' );\n\n// css to be processed\nvar css = fs.readFileSync( 'build/build.css', 'utf8' );\n\n// config for urlrewrite\nvar config = {\n    imports: true,\n    properties: [ 'background', 'content' ],\n    rules: [\n        { from: \\local\\, to: 'global' },\n        { from: \\local2\\, to: 'global2' }\n    ]\n};\n\n// process css using postcss-urlrewrite\nvar out = postcss()\n   .use( urlrewrite( config ) )\n   .process( css )\n   .css;\n```\n\n### Configuration\n\n#### imports\n\n**Type**: boolean\n**Default**: false\n\nIf set to true will replace urls in **@import** at-rules.\n\n#### properties\n\n**Type**: array or boolean\n**Default**: true\n\nList of css-properties to replace. If set to true, will work with all\nproperties. If set to array will work only with the properties in the list.\n\n#### rules\n\n**Type**: array of objects or function\n\nThere is to way to set rules:\n\n1. Create array of objects with \"from\" and \"to\" keys. \"from\" can be **String** or **RegExp**, \"to\" can be **String** or **Function**. See [String.replace()](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/replace) syntax for details. ONLY first matching rule will be triggered on each URI.\n2. Create function that will work with [URIjs](http://medialize.github.io/URI.js/) objects and mutate them one way or another.\n","_attachments":{},"homepage":"https://github.com/iAdramelk/postcss-urlrewrite#readme","bugs":{"url":"https://github.com/iAdramelk/postcss-urlrewrite/issues"},"license":"MIT"}