{"_id":"postcss-pseudoelements","_rev":"148903","name":"postcss-pseudoelements","description":"PostCSS plugin to add single-colon CSS 2.1 syntax pseudo selectors (i.e. :before)","dist-tags":{"latest":"5.0.0"},"maintainers":[{"name":"sventschui","email":"hi@sventschui.ch"}],"time":{"modified":"2021-06-03T11:31:14.000Z","created":"2014-12-05T13:53:54.885Z","5.0.0":"2017-07-09T19:28:31.915Z","4.0.0":"2017-03-23T21:34:49.283Z","3.0.0":"2015-09-07T05:33:06.071Z","2.2.0":"2015-05-24T08:46:02.897Z","2.1.1":"2015-03-24T18:22:37.475Z","2.1.0":"2015-03-23T13:13:21.190Z","2.0.0":"2015-03-23T11:27:35.282Z","1.0.0":"2014-12-05T13:53:54.885Z"},"users":{"asaupup":true,"nuwaio":true},"author":{"name":"Sven Tschui","email":"sven.tschui@axa.ch"},"repository":{"type":"git","url":"git://github.com/axa-ch/postcss-pseudoelements.git"},"versions":{"5.0.0":{"name":"postcss-pseudoelements","version":"5.0.0","description":"PostCSS plugin to add single-colon CSS 2.1 syntax pseudo selectors (i.e. :before)","main":"index.js","scripts":{"test":"mocha"},"repository":{"type":"git","url":"git://github.com/axa-ch/postcss-pseudoelements.git"},"keywords":["postcss","postcss-plugin","pseudoelements","before","after"],"author":{"name":"Sven Tschui","email":"sven.tschui@axa.ch"},"license":"MIT","bugs":{"url":"https://github.com/axa-ch/postcss-pseudoelements/issues"},"homepage":"https://github.com/axa-ch/postcss-pseudoelements","devDependencies":{"mocha":"^2.0.1","should":"^5.0.0"},"dependencies":{"postcss":"^6.0.0"},"gitHead":"205eeaa85ee047e524c97eb2f7e81bdd984414c5","_id":"postcss-pseudoelements@5.0.0","_shasum":"eef194e8d524645ca520a949e95e518e812402cb","_from":".","_npmVersion":"4.2.0","_nodeVersion":"7.10.0","_npmUser":{"name":"sventschui","email":"hi@sventschui.ch"},"maintainers":[{"name":"sventschui","email":"hi@sventschui.ch"}],"dist":{"shasum":"eef194e8d524645ca520a949e95e518e812402cb","size":3973,"noattachment":false,"key":"/postcss-pseudoelements/-/postcss-pseudoelements-5.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/postcss-pseudoelements/download/postcss-pseudoelements-5.0.0.tgz"},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/postcss-pseudoelements-5.0.0.tgz_1499628510923_0.7397323935292661"},"directories":{},"publish_time":1499628511915,"_cnpm_publish_time":1499628511915,"_hasShrinkwrap":false},"4.0.0":{"name":"postcss-pseudoelements","version":"4.0.0","description":"PostCSS plugin to add single-colon CSS 2.1 syntax pseudo selectors (i.e. :before)","main":"index.js","scripts":{"test":"mocha"},"repository":{"type":"git","url":"git://github.com/axa-ch/postcss-pseudoelements.git"},"keywords":["postcss","postcss-plugin","pseudoelements","before","after"],"author":{"name":"Sven Tschui","email":"sven.tschui@axa.ch"},"license":"MIT","bugs":{"url":"https://github.com/axa-ch/postcss-pseudoelements/issues"},"homepage":"https://github.com/axa-ch/postcss-pseudoelements","devDependencies":{"mocha":"^2.0.1","should":"^5.0.0"},"dependencies":{"postcss":"^5.0.4"},"gitHead":"3b1b6eb9455876a334e5276e1df820da08834990","_id":"postcss-pseudoelements@4.0.0","_shasum":"9acce229d5ed060a3d0e48c5cfd62f3ebec70603","_from":".","_npmVersion":"4.1.2","_nodeVersion":"7.7.3","_npmUser":{"name":"sventschui","email":"hi@sventschui.ch"},"maintainers":[{"name":"sventschui","email":"hi@sventschui.ch"}],"dist":{"shasum":"9acce229d5ed060a3d0e48c5cfd62f3ebec70603","size":1937,"noattachment":false,"key":"/postcss-pseudoelements/-/postcss-pseudoelements-4.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/postcss-pseudoelements/download/postcss-pseudoelements-4.0.0.tgz"},"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/postcss-pseudoelements-4.0.0.tgz_1490304887246_0.9665871115867049"},"directories":{},"publish_time":1490304889283,"_cnpm_publish_time":1490304889283,"_hasShrinkwrap":false},"3.0.0":{"name":"postcss-pseudoelements","version":"3.0.0","description":"PostCSS plugin to add single-colon CSS 2.1 syntax pseudo selectors (i.e. :before)","main":"index.js","scripts":{"test":"mocha"},"repository":{"type":"git","url":"git://github.com/axa-ch/postcss-pseudoelements.git"},"keywords":["postcss","postcss-plugin","pseudoelements","before","after"],"author":{"name":"Sven Tschui","email":"sven.tschui@axa.ch"},"license":"MIT","bugs":{"url":"https://github.com/axa-ch/postcss-pseudoelements/issues"},"homepage":"https://github.com/axa-ch/postcss-pseudoelements","devDependencies":{"mocha":"^2.0.1","should":"^5.0.0"},"dependencies":{"postcss":"^5.0.4"},"gitHead":"d1564a2e1ac3c0ea5c5f48e6427e3b9ad978cf0f","_id":"postcss-pseudoelements@3.0.0","_shasum":"6c682177c7900ba053b6df17f8c590284c7b8bbc","_from":".","_npmVersion":"2.8.4","_nodeVersion":"0.10.33","_npmUser":{"name":"sventschui","email":"hi@sventschui.ch"},"maintainers":[{"name":"sventschui","email":"hi@sventschui.ch"}],"dist":{"shasum":"6c682177c7900ba053b6df17f8c590284c7b8bbc","size":1567,"noattachment":false,"key":"/postcss-pseudoelements/-/postcss-pseudoelements-3.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/postcss-pseudoelements/download/postcss-pseudoelements-3.0.0.tgz"},"directories":{},"publish_time":1441603986071,"_cnpm_publish_time":1441603986071,"_hasShrinkwrap":false},"2.2.0":{"name":"postcss-pseudoelements","version":"2.2.0","description":"PostCSS plugin to add single-colon CSS 2.1 syntax pseudo selectors (i.e. :before)","main":"index.js","scripts":{"test":"mocha"},"repository":{"type":"git","url":"git://github.com/axa-ch/postcss-pseudoelements"},"keywords":["postcss","postcss-plugin","pseudoelements","before","after"],"author":{"name":"Sven Tschui","email":"sven.tschui@axa.ch"},"license":"MIT","bugs":{"url":"https://github.com/axa-ch/postcss-pseudoelements/issues"},"homepage":"https://github.com/axa-ch/postcss-pseudoelements","devDependencies":{"mocha":"^2.0.1","should":"^5.0.0"},"dependencies":{"postcss":"^4.1.11"},"gitHead":"2fe38c8de88aaf9cd8f516eedb6350e24724cb5f","_id":"postcss-pseudoelements@2.2.0","_shasum":"4b2dd3184479237c723f4f1d740edc36feb875be","_from":".","_npmVersion":"1.4.23","_npmUser":{"name":"sventschui","email":"hi@sventschui.ch"},"maintainers":[{"name":"sventschui","email":"hi@sventschui.ch"}],"dist":{"shasum":"4b2dd3184479237c723f4f1d740edc36feb875be","size":1565,"noattachment":false,"key":"/postcss-pseudoelements/-/postcss-pseudoelements-2.2.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/postcss-pseudoelements/download/postcss-pseudoelements-2.2.0.tgz"},"directories":{},"publish_time":1432457162897,"_cnpm_publish_time":1432457162897,"_hasShrinkwrap":false},"2.1.1":{"name":"postcss-pseudoelements","version":"2.1.1","description":"PostCSS plugin to add single-colon CSS 2.1 syntax pseudo selectors (i.e. :before)","main":"index.js","scripts":{"test":"mocha"},"repository":{"type":"git","url":"git://github.com/axa-ch/postcss-pseudoelements"},"keywords":["postcss","pseudoelements","before","after"],"author":{"name":"Sven Tschui","email":"sven.tschui@axa.ch"},"license":"MIT","bugs":{"url":"https://github.com/axa-ch/postcss-pseudoelements/issues"},"homepage":"https://github.com/axa-ch/postcss-pseudoelements","devDependencies":{"mocha":"^2.0.1","postcss":">=3.0.5","should":"^5.0.0"},"gitHead":"fb239fa176cca3110652c6a4631b0dbdbcce6233","_id":"postcss-pseudoelements@2.1.1","_shasum":"ea401b2b78531a91e8d64284c8796f6804d7c309","_from":".","_npmVersion":"1.4.23","_npmUser":{"name":"sventschui","email":"hi@sventschui.ch"},"maintainers":[{"name":"sventschui","email":"hi@sventschui.ch"}],"dist":{"shasum":"ea401b2b78531a91e8d64284c8796f6804d7c309","size":1538,"noattachment":false,"key":"/postcss-pseudoelements/-/postcss-pseudoelements-2.1.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/postcss-pseudoelements/download/postcss-pseudoelements-2.1.1.tgz"},"directories":{},"publish_time":1427221357475,"_cnpm_publish_time":1427221357475,"_hasShrinkwrap":false},"2.1.0":{"name":"postcss-pseudoelements","version":"2.1.0","description":"PostCSS plugin to add single-colon CSS 2.1 syntax pseudo selectors (i.e. :before)","main":"index.js","scripts":{"test":"mocha"},"repository":{"type":"git","url":"git://github.com/axa-ch/postcss-pseudoelements"},"keywords":["postcss","pseudoelements","before","after"],"author":{"name":"Sven Tschui","email":"sven.tschui@axa.ch"},"license":"MIT","bugs":{"url":"https://github.com/axa-ch/postcss-pseudoelements/issues"},"homepage":"https://github.com/axa-ch/postcss-pseudoelements","dependencies":{"minimatch":"^2.0.1"},"devDependencies":{"mocha":"^2.0.1","postcss":"^3.0.5","should":"^4.3.0"},"gitHead":"f96e5c28af38f8d5bec1e1ee4365cbed12c9cbca","_id":"postcss-pseudoelements@2.1.0","_shasum":"30a299600cf8ab13d7232c7fe123845f35485ab2","_from":".","_npmVersion":"1.4.23","_npmUser":{"name":"sventschui","email":"hi@sventschui.ch"},"maintainers":[{"name":"sventschui","email":"hi@sventschui.ch"}],"dist":{"shasum":"30a299600cf8ab13d7232c7fe123845f35485ab2","size":1503,"noattachment":false,"key":"/postcss-pseudoelements/-/postcss-pseudoelements-2.1.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/postcss-pseudoelements/download/postcss-pseudoelements-2.1.0.tgz"},"directories":{},"publish_time":1427116401190,"_cnpm_publish_time":1427116401190,"_hasShrinkwrap":false},"2.0.0":{"name":"postcss-pseudoelements","version":"2.0.0","description":"PostCSS plugin to add single-colon CSS 2.1 syntax pseudo selectors (i.e. :before)","main":"index.js","scripts":{"test":"mocha"},"repository":{"type":"git","url":"git://github.com/axa-ch/postcss-pseudoelements"},"keywords":["postcss","pseudoelements","before","after"],"author":{"name":"Sven Tschui","email":"sven.tschui@axa.ch"},"license":"MIT","bugs":{"url":"https://github.com/axa-ch/postcss-pseudoelements/issues"},"homepage":"https://github.com/axa-ch/postcss-pseudoelements","dependencies":{"minimatch":"^2.0.1"},"devDependencies":{"mocha":"^2.0.1","postcss":"^3.0.5","should":"^4.3.0"},"gitHead":"890459f6b0d0f114b350e2201ff60f676eb329aa","_id":"postcss-pseudoelements@2.0.0","_shasum":"3e1c961d51d78c787ab3b529843b2dda0b40095a","_from":".","_npmVersion":"1.4.23","_npmUser":{"name":"sventschui","email":"hi@sventschui.ch"},"maintainers":[{"name":"sventschui","email":"hi@sventschui.ch"}],"dist":{"shasum":"3e1c961d51d78c787ab3b529843b2dda0b40095a","size":1345,"noattachment":false,"key":"/postcss-pseudoelements/-/postcss-pseudoelements-2.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/postcss-pseudoelements/download/postcss-pseudoelements-2.0.0.tgz"},"directories":{},"publish_time":1427110055282,"_cnpm_publish_time":1427110055282,"_hasShrinkwrap":false},"1.0.0":{"name":"postcss-pseudoelements","version":"1.0.0","description":"PostCSS plugin to add single-colon CSS 2.1 syntax pseudo selectors (i.e. :before)","main":"index.js","scripts":{"test":"mocha"},"repository":{"type":"git","url":"git://github.com/axa-ch/postcss-pseudoelements"},"keywords":["postcss","pseudoelements","before","after"],"author":{"name":"Sven Tschui","email":"sven.tschui@axa.ch"},"license":"MIT","bugs":{"url":"https://github.com/axa-ch/postcss-pseudoelements/issues"},"homepage":"https://github.com/axa-ch/postcss-pseudoelements","dependencies":{"minimatch":"^2.0.1"},"devDependencies":{"mocha":"^2.0.1","postcss":"^3.0.5","should":"^4.3.0"},"gitHead":"66bdf31daa3b4b27ba47f913f4ef3c1498b23c9b","_id":"postcss-pseudoelements@1.0.0","_shasum":"b38d70cf710fc6bf0ec56d294962b8ab3f52e39c","_from":".","_npmVersion":"1.4.28","_npmUser":{"name":"sventschui","email":"hi@sventschui.ch"},"maintainers":[{"name":"sventschui","email":"hi@sventschui.ch"}],"dist":{"shasum":"b38d70cf710fc6bf0ec56d294962b8ab3f52e39c","size":1626,"noattachment":false,"key":"/postcss-pseudoelements/-/postcss-pseudoelements-1.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/postcss-pseudoelements/download/postcss-pseudoelements-1.0.0.tgz"},"directories":{},"publish_time":1417787634885,"_cnpm_publish_time":1417787634885,"_hasShrinkwrap":false}},"readme":"# postcss-pseudoelements\n\npostcss helper for pseudo element colons, it handles double -> single and single -> double.\n\n## Usage\n\n### Double to Single (default)\n```javascript\nvar pe = require('postcss-pseudoelements');\nvar postcss = require('postcss');\nvar options = {\n\tsingle: true, // default\n\tselectors: ['before','after','first-letter','first-line'], // default\n};\n\nvar processor = postcss(pe(options));\n\nconsole.log(processor.process('a:before {}').css) // outputs: a:before {}\nconsole.log(processor.process('a::before {}').css) // outputs: a:before {}\n```\n\n### Single to Double\n\n```javascript\nvar pe = require('postcss-pseudoelements');\nvar postcss = require('postcss');\nvar options = {\n\tsingle: false,\n\tselectors: ['before','after','first-letter','first-line'], // default\n};\n\nvar processor = postcss(pe(options));\n\nconsole.log(processor.process('a:before {}').css) // outputs: a::before {}\nconsole.log(processor.process('a::before {}').css) // outputs: a::before {}\n```\n\n## Options\n\n`single`: Boolean\n* `true` (default) if you want to move from double colon to colon for backwards compatibility\n* `false` if you need double colons\n\n`selectors`: `Array` of pseudo-element selectors to rewrite with single and double colons. Note that these values will be used in a regexp without escaping. Defaults to `['before','after','first-letter','first-line']`\n\nexample selectors:\n```\nvar options = {\n  selectors: [\n    'hover',\n    'focus',\n    'active',\n    'after',\n    'ms-expand',\n    'not',\n    'first-child',\n    'last-child'\n  ],\n};\n```\n\n### Defaults\n```javascript\nvar options = {\n  single: true,\n  [\n    'before',\n    'after',\n    'first-letter',\n    'first-line'\n  ]\n};\n```\n","_attachments":{},"homepage":"https://github.com/axa-ch/postcss-pseudoelements","bugs":{"url":"https://github.com/axa-ch/postcss-pseudoelements/issues"},"license":"MIT"}