{"_id":"posthtml-rename-id","_rev":"470502","name":"posthtml-rename-id","description":"PostHTML plugin to rename id attributes and it's references","dist-tags":{"alpha":"1.0.4-alpha.0","canary":"1.1.0-alpha.10475b37","latest":"1.0.12"},"maintainers":[{"name":"kisenka","email":"qtuzov@gmail.com"}],"time":{"modified":"2021-08-05T08:16:44.000Z","created":"2016-08-04T11:33:43.197Z","1.0.12":"2020-04-03T14:02:03.207Z","1.0.11":"2018-12-05T18:51:19.738Z","1.0.10":"2018-10-29T11:41:38.267Z","1.0.9":"2018-10-29T08:46:59.325Z","1.0.8":"2018-06-18T14:29:12.884Z","1.0.7":"2018-05-11T14:29:48.414Z","1.0.6":"2018-04-28T10:49:15.580Z","1.0.5":"2018-04-21T16:45:28.606Z","1.0.4":"2018-04-13T10:53:09.776Z","1.0.4-alpha.0":"2018-04-09T15:04:37.051Z","1.1.0-alpha.10475b37":"2018-04-09T14:55:52.379Z","1.0.3":"2017-10-22T16:31:11.356Z","1.0.2":"2017-05-16T21:43:00.123Z","1.0.1":"2017-04-27T18:36:07.289Z","1.0.0":"2016-08-04T11:33:43.197Z"},"users":{},"author":{"name":"JetBrains"},"repository":{"type":"git","url":"git+https://github.com/JetBrains/svg-mixer.git"},"versions":{"1.0.12":{"name":"posthtml-rename-id","version":"1.0.12","description":"PostHTML plugin to rename id attributes and it's references","keywords":["posthtml","posthtml plugin"],"license":"MIT","author":{"name":"JetBrains"},"homepage":"https://github.com/JetBrains/svg-mixer/tree/master/packages/posthtml-rename-id","repository":{"type":"git","url":"git+https://github.com/JetBrains/svg-mixer.git"},"dependencies":{"escape-string-regexp":"1.0.5"},"gitHead":"eb37ef4bcbf7a24173b76319cfa2f299b60ae6dd","bugs":{"url":"https://github.com/JetBrains/svg-mixer/issues"},"_id":"posthtml-rename-id@1.0.12","_nodeVersion":"10.19.0","_npmVersion":"lerna/3.20.2/node@v10.19.0+x64 (darwin)","dist":{"shasum":"cf7f6eb37146bf1afac31e68f18c6cc19ae61433","size":3232,"noattachment":false,"key":"/posthtml-rename-id/-/posthtml-rename-id-1.0.12.tgz","tarball":"http://registry.cnpm.dingdandao.com/posthtml-rename-id/download/posthtml-rename-id-1.0.12.tgz"},"maintainers":[{"name":"kisenka","email":"qtuzov@gmail.com"}],"_npmUser":{"name":"kisenka","email":"qtuzov@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/posthtml-rename-id_1.0.12_1585922523034_0.32896660850106185"},"_hasShrinkwrap":false,"publish_time":1585922523207,"_cnpm_publish_time":1585922523207},"1.0.11":{"name":"posthtml-rename-id","version":"1.0.11","description":"PostHTML plugin to rename id attributes and it's references","keywords":["posthtml","posthtml plugin"],"license":"MIT","author":{"name":"JetBrains"},"homepage":"https://github.com/JetBrains/svg-mixer/tree/master/packages/posthtml-rename-id","repository":{"type":"git","url":"git+https://github.com/JetBrains/svg-mixer.git"},"dependencies":{"escape-string-regexp":"1.0.5"},"bugs":{"url":"https://github.com/JetBrains/svg-mixer/issues"},"_id":"posthtml-rename-id@1.0.11","_npmVersion":"6.3.0","_nodeVersion":"8.11.2","_npmUser":{"name":"kisenka","email":"qtuzov@gmail.com"},"dist":{"shasum":"02281a1e4482aa3c8c30f798cf9a888e32d9275c","size":3163,"noattachment":false,"key":"/posthtml-rename-id/-/posthtml-rename-id-1.0.11.tgz","tarball":"http://registry.cnpm.dingdandao.com/posthtml-rename-id/download/posthtml-rename-id-1.0.11.tgz"},"maintainers":[{"name":"kisenka","email":"qtuzov@gmail.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/posthtml-rename-id_1.0.11_1544035879582_0.7487459519038331"},"_hasShrinkwrap":false,"publish_time":1544035879738,"_cnpm_publish_time":1544035879738},"1.0.10":{"name":"posthtml-rename-id","version":"1.0.10","description":"PostHTML plugin to rename id attributes and it's references","keywords":["posthtml","posthtml plugin"],"license":"MIT","author":{"name":"JetBrains"},"homepage":"https://github.com/JetBrains/svg-mixer/tree/master/packages/posthtml-rename-id","repository":{"type":"git","url":"git+https://github.com/JetBrains/svg-mixer.git"},"dependencies":{"escape-string-regexp":"1.0.5"},"bugs":{"url":"https://github.com/JetBrains/svg-mixer/issues"},"_id":"posthtml-rename-id@1.0.10","_npmVersion":"6.3.0","_nodeVersion":"8.11.2","_npmUser":{"name":"kisenka","email":"qtuzov@gmail.com"},"dist":{"shasum":"5ff2d37839ed79281c258ada6782ae0853046861","size":3133,"noattachment":false,"key":"/posthtml-rename-id/-/posthtml-rename-id-1.0.10.tgz","tarball":"http://registry.cnpm.dingdandao.com/posthtml-rename-id/download/posthtml-rename-id-1.0.10.tgz"},"maintainers":[{"name":"kisenka","email":"qtuzov@gmail.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/posthtml-rename-id_1.0.10_1540813298082_0.2888336026304523"},"_hasShrinkwrap":false,"publish_time":1540813298267,"_cnpm_publish_time":1540813298267},"1.0.9":{"name":"posthtml-rename-id","version":"1.0.9","description":"PostHTML plugin to rename id attributes and it's references","keywords":["posthtml","posthtml plugin"],"license":"MIT","homepage":"https://github.com/kisenka/svg-mixer/packages/posthtml-rename-id","repository":{"type":"git","url":"https://github.com/kisenka/svg-mixer/packages/posthtml-rename-id"},"dependencies":{"escape-string-regexp":"1.0.5"},"_id":"posthtml-rename-id@1.0.9","_npmVersion":"6.3.0","_nodeVersion":"8.11.2","_npmUser":{"name":"kisenka","email":"qtuzov@gmail.com"},"dist":{"shasum":"f316aa02aaa44f6f02fb1c1625de6f345037a80c","size":3089,"noattachment":false,"key":"/posthtml-rename-id/-/posthtml-rename-id-1.0.9.tgz","tarball":"http://registry.cnpm.dingdandao.com/posthtml-rename-id/download/posthtml-rename-id-1.0.9.tgz"},"maintainers":[{"name":"kisenka","email":"qtuzov@gmail.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/posthtml-rename-id_1.0.9_1540802819207_0.08555184073526245"},"_hasShrinkwrap":false,"publish_time":1540802819325,"_cnpm_publish_time":1540802819325},"1.0.8":{"name":"posthtml-rename-id","version":"1.0.8","description":"PostHTML plugin to rename id attributes and it's references","keywords":["posthtml","posthtml plugin"],"license":"MIT","homepage":"https://github.com/kisenka/svg-mixer/packages/posthtml-rename-id","repository":{"type":"git","url":"https://github.com/kisenka/svg-mixer/packages/posthtml-rename-id"},"files":["index.js"],"dependencies":{"escape-string-regexp":"1.0.5"},"_id":"posthtml-rename-id@1.0.8","_npmVersion":"5.6.0","_nodeVersion":"8.11.2","_npmUser":{"name":"kisenka","email":"qtuzov@gmail.com"},"dist":{"shasum":"dece77bf64e3c94417603e497c8537977db131bc","size":2370,"noattachment":false,"key":"/posthtml-rename-id/-/posthtml-rename-id-1.0.8.tgz","tarball":"http://registry.cnpm.dingdandao.com/posthtml-rename-id/download/posthtml-rename-id-1.0.8.tgz"},"maintainers":[{"name":"kisenka","email":"qtuzov@gmail.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/posthtml-rename-id_1.0.8_1529332152771_0.7763092120854802"},"_hasShrinkwrap":false,"publish_time":1529332152884,"_cnpm_publish_time":1529332152884},"1.0.7":{"name":"posthtml-rename-id","version":"1.0.7","description":"PostHTML plugin to rename id attributes and it's references","keywords":["posthtml","posthtml plugin"],"license":"MIT","homepage":"https://github.com/kisenka/svg-mixer/packages/posthtml-rename-id","repository":{"type":"git","url":"https://github.com/kisenka/svg-mixer/packages/posthtml-rename-id"},"files":["index.js"],"dependencies":{"escape-string-regexp":"1.0.5"},"_id":"posthtml-rename-id@1.0.7","_npmVersion":"5.6.0","_nodeVersion":"8.11.1","_npmUser":{"name":"kisenka","email":"qtuzov@gmail.com"},"dist":{"shasum":"190e9f341a8bbbda31e47e932f1d9b71b9f73593","size":2260,"noattachment":false,"key":"/posthtml-rename-id/-/posthtml-rename-id-1.0.7.tgz","tarball":"http://registry.cnpm.dingdandao.com/posthtml-rename-id/download/posthtml-rename-id-1.0.7.tgz"},"maintainers":[{"name":"kisenka","email":"qtuzov@gmail.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/posthtml-rename-id_1.0.7_1526048988356_0.009228486015461668"},"_hasShrinkwrap":false,"publish_time":1526048988414,"_cnpm_publish_time":1526048988414},"1.0.6":{"name":"posthtml-rename-id","version":"1.0.6","description":"PostHTML plugin to rename id attributes and it's references","keywords":["posthtml","posthtml plugin"],"license":"MIT","homepage":"https://github.com/kisenka/svg-mixer/packages/posthtml-rename-id","repository":{"type":"git","url":"https://github.com/kisenka/svg-mixer/packages/posthtml-rename-id"},"files":["index.js"],"dependencies":{"escape-string-regexp":"1.0.5"},"_id":"posthtml-rename-id@1.0.6","_npmVersion":"5.6.0","_nodeVersion":"8.11.1","_npmUser":{"name":"kisenka","email":"qtuzov@gmail.com"},"dist":{"shasum":"384ec73da9d20e8fcd92b5bd7a02f6f2506d5d80","size":2249,"noattachment":false,"key":"/posthtml-rename-id/-/posthtml-rename-id-1.0.6.tgz","tarball":"http://registry.cnpm.dingdandao.com/posthtml-rename-id/download/posthtml-rename-id-1.0.6.tgz"},"maintainers":[{"name":"kisenka","email":"qtuzov@gmail.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/posthtml-rename-id_1.0.6_1524912555384_0.7578872207575675"},"_hasShrinkwrap":false,"publish_time":1524912555580,"_cnpm_publish_time":1524912555580},"1.0.5":{"name":"posthtml-rename-id","version":"1.0.5","description":"PostHTML plugin to rename id attributes and it's references","license":"MIT","homepage":"https://github.com/kisenka/svg-mixer/packages/posthtml-rename-id","repository":{"type":"git","url":"https://github.com/kisenka/svg-mixer/packages/posthtml-rename-id"},"files":["index.js"],"dependencies":{"escape-string-regexp":"1.0.5"},"scripts":{"test":"mocha -r $MOCHA_SETUP_PATH"},"_id":"posthtml-rename-id@1.0.5","_npmVersion":"5.6.0","_nodeVersion":"9.9.0","_npmUser":{"name":"kisenka","email":"qtuzov@gmail.com"},"dist":{"shasum":"09ede15775f0a9fa5dab13a6eee3eecbbe19aaa7","size":2171,"noattachment":false,"key":"/posthtml-rename-id/-/posthtml-rename-id-1.0.5.tgz","tarball":"http://registry.cnpm.dingdandao.com/posthtml-rename-id/download/posthtml-rename-id-1.0.5.tgz"},"maintainers":[{"name":"kisenka","email":"qtuzov@gmail.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/posthtml-rename-id_1.0.5_1524329128508_0.1940482937619199"},"_hasShrinkwrap":false,"publish_time":1524329128606,"_cnpm_publish_time":1524329128606},"1.0.4":{"name":"posthtml-rename-id","version":"1.0.4","description":"PostHTML plugin to rename id attributes and it's references","license":"MIT","repository":{"type":"git","url":"https://github.com/kisenka/svg-baker/packages/posthtml-rename-id"},"files":["index.js"],"dependencies":{"escape-string-regexp":"1.0.5"},"scripts":{"test":"mocha -r $MOCHA_SETUP_PATH"},"_id":"posthtml-rename-id@1.0.4","_npmVersion":"5.6.0","_nodeVersion":"9.9.0","_npmUser":{"name":"kisenka","email":"qtuzov@gmail.com"},"dist":{"shasum":"7da1d8833120e4f1b040374b11f893108cce0c7f","size":2142,"noattachment":false,"key":"/posthtml-rename-id/-/posthtml-rename-id-1.0.4.tgz","tarball":"http://registry.cnpm.dingdandao.com/posthtml-rename-id/download/posthtml-rename-id-1.0.4.tgz"},"maintainers":[{"name":"kisenka","email":"qtuzov@gmail.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/posthtml-rename-id_1.0.4_1523616789704_0.9647409528369344"},"_hasShrinkwrap":false,"publish_time":1523616789776,"_cnpm_publish_time":1523616789776},"1.0.4-alpha.0":{"name":"posthtml-rename-id","version":"1.0.4-alpha.0","description":"PostHTML plugin to rename id attributes and it's references","license":"MIT","repository":{"type":"git","url":"https://github.com/kisenka/svg-baker/packages/posthtml-rename-id"},"files":["index.js"],"dependencies":{"escape-string-regexp":"1.0.5"},"scripts":{"test":"mocha -r $MOCHA_SETUP_PATH"},"readmeFilename":"README.md","_id":"posthtml-rename-id@1.0.4-alpha.0","_npmVersion":"5.6.0","_nodeVersion":"9.9.0","_npmUser":{"name":"kisenka","email":"qtuzov@gmail.com"},"dist":{"shasum":"756ec336e5c6d1f1e6cacea0421d0a7d4aac5a84","size":2122,"noattachment":false,"key":"/posthtml-rename-id/-/posthtml-rename-id-1.0.4-alpha.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/posthtml-rename-id/download/posthtml-rename-id-1.0.4-alpha.0.tgz"},"maintainers":[{"name":"kisenka","email":"qtuzov@gmail.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/posthtml-rename-id_1.0.4-alpha.0_1523286276992_0.8947259342532718"},"_hasShrinkwrap":false,"publish_time":1523286277051,"_cnpm_publish_time":1523286277051},"1.1.0-alpha.10475b37":{"name":"posthtml-rename-id","version":"1.1.0-alpha.10475b37","description":"PostHTML plugin to rename id attributes and it's references","license":"MIT","repository":{"type":"git","url":"https://github.com/kisenka/svg-baker/packages/posthtml-rename-id"},"files":["index.js"],"dependencies":{"escape-string-regexp":"1.0.5"},"scripts":{"test":"mocha -r $MOCHA_SETUP_PATH"},"readmeFilename":"README.md","_id":"posthtml-rename-id@1.1.0-alpha.10475b37","_npmVersion":"5.6.0","_nodeVersion":"9.9.0","_npmUser":{"name":"kisenka","email":"qtuzov@gmail.com"},"dist":{"shasum":"96a531a1dd8708d58cfbfc7a92fedd491a7e61b8","size":2130,"noattachment":false,"key":"/posthtml-rename-id/-/posthtml-rename-id-1.1.0-alpha.10475b37.tgz","tarball":"http://registry.cnpm.dingdandao.com/posthtml-rename-id/download/posthtml-rename-id-1.1.0-alpha.10475b37.tgz"},"maintainers":[{"name":"kisenka","email":"qtuzov@gmail.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/posthtml-rename-id_1.1.0-alpha.10475b37_1523285752281_0.7336510664584956"},"_hasShrinkwrap":false,"publish_time":1523285752379,"_cnpm_publish_time":1523285752379},"1.0.3":{"name":"posthtml-rename-id","version":"1.0.3","description":"PostHTML plugin to rename id attribute and it's references","main":"index.js","files":["README.md","index.js"],"author":{"name":"kisenka"},"license":"MIT","repository":{"type":"git","url":"git+https://github.com/kisenka/posthtml-rename-id.git"},"bugs":{"url":"https://github.com/kisenka/posthtml-rename-id/issues"},"homepage":"https://github.com/kisenka/posthtml-rename-id#readme","dependencies":{"escape-string-regexp":"^1.0.5"},"devDependencies":{"mocha":"^4.0.1","postsvg":"^2.0.0"},"scripts":{"test":"mocha"},"gitHead":"9a57fabcb24196f3ca16dc5d02e34abd275fb8fd","_id":"posthtml-rename-id@1.0.3","_npmVersion":"5.4.2","_nodeVersion":"8.7.0","_npmUser":{"name":"kisenka","email":"qtuzov@gmail.com"},"dist":{"shasum":"acc7a7af62a58a695e8ab9c2d0b6b462ab3ee17f","size":1895,"noattachment":false,"key":"/posthtml-rename-id/-/posthtml-rename-id-1.0.3.tgz","tarball":"http://registry.cnpm.dingdandao.com/posthtml-rename-id/download/posthtml-rename-id-1.0.3.tgz"},"maintainers":[{"name":"kisenka","email":"qtuzov@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/posthtml-rename-id-1.0.3.tgz_1508689870431_0.1954674869775772"},"directories":{},"publish_time":1508689871356,"_hasShrinkwrap":false,"_cnpm_publish_time":1508689871356},"1.0.2":{"name":"posthtml-rename-id","version":"1.0.2","description":"PostHTML plugin to rename id attributes and it's references","license":"MIT","repository":{"type":"git","url":"https://github.com/kisenka/svg-baker/packages/posthtml-rename-id"},"main":"lib/posthtml-rename-id.js","files":["lib/","README.md"],"dependencies":{"escape-string-regexp":"1.0.5"},"scripts":{"lint":"eslint lib test","test":"nyc --reporter=lcov mocha -r ../../test/mocha-setup.js"},"_id":"posthtml-rename-id@1.0.2","_shasum":"54093aa2761e29392168bb05723e12668632b250","_from":".","_npmVersion":"3.10.10","_nodeVersion":"7.9.0","_npmUser":{"name":"kisenka","email":"qtuzov@gmail.com"},"dist":{"shasum":"54093aa2761e29392168bb05723e12668632b250","size":2008,"noattachment":false,"key":"/posthtml-rename-id/-/posthtml-rename-id-1.0.2.tgz","tarball":"http://registry.cnpm.dingdandao.com/posthtml-rename-id/download/posthtml-rename-id-1.0.2.tgz"},"maintainers":[{"name":"kisenka","email":"qtuzov@gmail.com"}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/posthtml-rename-id-1.0.2.tgz_1494970978285_0.7866921273525804"},"directories":{},"publish_time":1494970980123,"_cnpm_publish_time":1494970980123,"_hasShrinkwrap":false},"1.0.1":{"name":"posthtml-rename-id","version":"1.0.1","description":"PostHTML plugin to rename id attributes and it's references","license":"MIT","repository":{"type":"git","url":"https://github.com/kisenka/svg-baker/packages/posthtml-rename-id"},"main":"lib/posthtml-rename-id.js","files":["lib/","README.md"],"dependencies":{"escape-string-regexp":"1.0.5"},"_id":"posthtml-rename-id@1.0.1","scripts":{},"_shasum":"0408d2ae5325336d6fbeaaf8d1fdc39e4e78f1c6","_from":".","_npmVersion":"3.10.10","_nodeVersion":"7.9.0","_npmUser":{"name":"kisenka","email":"qtuzov@gmail.com"},"dist":{"shasum":"0408d2ae5325336d6fbeaaf8d1fdc39e4e78f1c6","size":1801,"noattachment":false,"key":"/posthtml-rename-id/-/posthtml-rename-id-1.0.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/posthtml-rename-id/download/posthtml-rename-id-1.0.1.tgz"},"maintainers":[{"name":"kisenka","email":"qtuzov@gmail.com"}],"_npmOperationalInternal":{"host":"packages-18-east.internal.npmjs.com","tmp":"tmp/posthtml-rename-id-1.0.1.tgz_1493318166688_0.4099244384560734"},"directories":{},"publish_time":1493318167289,"_hasShrinkwrap":false,"_cnpm_publish_time":1493318167289},"1.0.0":{"name":"posthtml-rename-id","version":"1.0.0","description":"PostHTML plugin to rename id attribute and it's references","main":"lib/plugin.js","scripts":{"test":"mocha","coverage":"istanbul cover --report text --report html --report lcov node_modules/mocha/bin/_mocha"},"repository":{"type":"git","url":"git+https://github.com/kisenka/posthtml-rename-id.git"},"author":{"name":"Stas Kurilov","email":"qtuzov@gmail.com"},"license":"MIT","bugs":{"url":"https://github.com/kisenka/posthtml-rename-id/issues"},"homepage":"https://github.com/kisenka/posthtml-rename-id#readme","files":["README.md","index.js"],"devDependencies":{"eslint":"^3.2.2","istanbul":"^0.4.4","mocha":"^2.5.3","posthtml":"^0.9.0","posthtml-parser":"^0.2.0"},"dependencies":{"escape-string-regexp":"^1.0.5"},"gitHead":"946976879f68b3c4f8705ef63f469f00bc8caca7","_id":"posthtml-rename-id@1.0.0","_shasum":"92fbf9e0983be915de74377fc85375148e0b48c5","_from":".","_npmVersion":"3.9.3","_nodeVersion":"4.4.5","_npmUser":{"name":"kisenka","email":"qtuzov@gmail.com"},"dist":{"shasum":"92fbf9e0983be915de74377fc85375148e0b48c5","size":2025,"noattachment":false,"key":"/posthtml-rename-id/-/posthtml-rename-id-1.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/posthtml-rename-id/download/posthtml-rename-id-1.0.0.tgz"},"maintainers":[{"name":"kisenka","email":"qtuzov@gmail.com"}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/posthtml-rename-id-1.0.0.tgz_1470310421316_0.20207266695797443"},"directories":{},"publish_time":1470310423197,"_cnpm_publish_time":1470310423197,"_hasShrinkwrap":false}},"readme":"# posthtml-rename-id\n\n[PostHTML](https://github.com/posthtml/posthtml) plugin to rename id attributes \nand it's references. Inspired by [grunt-svgstore](https://github.com/FWeinb/grunt-svgstore).\n\nHandle following cases:\n\n- `href=\"#id\"` and `xlink:href=\"#id\"`\n- `style` attribute values like `style=\"fill: url(#id)\"`\n- `<style>` tag values like `.selector {fill: url(#id)\"}`\n- any other attribute value like `attr=\"url(#id)\"`\n\n## Demo\n\nInput\n```html\n<style>\n.selector {fill: url(#qwe)}\n</style>\n\n<div id=\"qwe\"></div>\n<a href=\"#qwe\"></a>\n```\n\nOutput\n```html\n<style>\n.selector {fill: url(#prefix_qwe)}\n</style>\n\n<div id=\"prefix_qwe\"></div>\n<a href=\"#prefix_qwe\"></a>\n```\n\n## Install\n\n```sh\nnpm install posthtml-rename-id\n```\n\n## Usage\n\n```js\nconst posthtml = require('posthtml');\nconst rename = require('posthtml-rename-id');\n\nposthtml()\n  .use(rename('prefix_[id]'))\n  .process('<div id=\"qwe\"></div> <a href=\"#qwe\"></a>')\n  .then(({ html }) => {\n    console.log(html); // <div id=\"prefix_qwe\"></div> <a href=\"#prefix_qwe\"></a>\n  });\n```\n\n## Configuration\n\n### `pattern`\n\n> Type: `string | function`<br>\n> Default: `'[id]'`\n\nRenaming pattern. `[id]` placeholder can be used as current id of an element.\nIf `pattern` provided as a function it will be called with current id as first argument.\nFunction should return the new id as string (`[id]` can be used as well).\n\n## Examples\n\nUppercase all ids:\n```js\nposthtml([\n  renameId(id => id.toUpperCase())\n]);\n```\n\nRename all ids to `elem_{counter}`:\n```js\nlet c = 0;\nposthtml([\n  renameId((id) => { c++; return 'elem_' + c; })\n]);\n```\n\n## LICENSE\n\n[MIT](https://github.com/JetBrains/svg-mixer/blob/master/LICENSE)\n","_attachments":{},"homepage":"https://github.com/JetBrains/svg-mixer/tree/master/packages/posthtml-rename-id","bugs":{"url":"https://github.com/JetBrains/svg-mixer/issues"},"license":"MIT"}