{"name":"postcss-pseudo-class-any-link","version":"7.0.2","description":"Use the :any-link pseudo-class in CSS","author":{"name":"Jonathan Neal","email":"jonathantneal@hotmail.com"},"license":"CC0-1.0","homepage":"https://github.com/csstools/postcss-plugins/tree/main/plugins/postcss-pseudo-class-any-link#readme","bugs":{"url":"https://github.com/csstools/postcss-plugins/issues"},"main":"dist/index.cjs","module":"dist/index.mjs","scripts":{"build":"rollup -c ../../rollup/default.js","clean":"node -e \"fs.rmSync('./dist', { recursive: true, force: true });\"","lint":"eslint ./src --ext .js --ext .ts --ext .mjs --no-error-on-unmatched-pattern","prepublishOnly":"npm run clean && npm run build && npm run test","stryker":"stryker run --logLevel error","test":"postcss-tape --ci && npm run test:exports","test:exports":"node ./test/_import.mjs && node ./test/_require.cjs"},"engines":{"node":"^12 || ^14 || >=16"},"dependencies":{"postcss-selector-parser":"^6.0.8"},"devDependencies":{"postcss":"^8.3.6","postcss-tape":"^6.0.1"},"peerDependencies":{"postcss":"^8.3"},"keywords":["postcss","css","postcss-plugin","link","visited","any-link","a","area","hyperlink","href"],"repository":{"type":"git","url":"git+https://github.com/csstools/postcss-plugins.git","directory":"plugins/postcss-pseudo-class-any-link"},"volta":{"extends":"../../package.json"},"gitHead":"0a26bcd576a0cf042e6156af027ab69b2e88f705","_id":"postcss-pseudo-class-any-link@7.0.2","_nodeVersion":"16.13.1","_npmVersion":"8.1.2","dist":{"integrity":"sha512-CG35J1COUH7OOBgpw5O+0koOLUd5N4vUGKUqSAuIe4GiuLHWU96Pqp+UPC8QITTd12zYAFx76pV7qWT/0Aj/TA==","shasum":"6284c2f970715c78fe992d2fac1130e9991585c9","tarball":"http://registry-npm.ywwl.com/postcss-pseudo-class-any-link/download/postcss-pseudo-class-any-link-7.0.2.tgz","fileCount":6,"unpackedSize":14698,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJh0cMdCRA9TVsSAnZWagAAVBgQAJZB5yYEggmzDrtr4J3e\n3DxSgccAQRq6g08wj/yhOLI4coMWv3r1q1KnxeKfYEB0He2EucOtP4+x3Lxr\nSzGv0+oR4aewQ5/ogP1T2YZEpce7fSRurX2H4ycPlzf8YqtHTwjigY2WZgtO\n7c7iOvxT/tmf7cMzKV4CEaN6oDmbNZ+aLcHY22BBmMdvQSVYL/NfgdJHexzd\nSH10XQ2Xu70zoKKy8QY9mfUDUss3m0/XYZqxua2EFQ5+pPmviX9004hx43dz\ndkhfOcDsP77JzxHchq3MeaVsT1iQFuoSyLp0UuSm4a9d9/6/rLleRVX3UM+I\n7GyIdBZuMkJvasaN0IUYeDiEMJZmnJfM6grtgKXI9MOXYP30QHkSnzyjO3Pe\ntsPoA5Koqv51FBzGmw4+syqvMUoB0cNlKOSJSr6hk3hHONnB0s7fAWcCTOHy\n5c3lP3Idt0o/6rNJNsiU/E/VMo2KMchsZ7XIRQri9Fm+zh5Gmkr6Oc0rvIN0\nWwoeePdFvGKg2IXUWHBGF7BIg26yC1NtbZsfoJqdhM5B36csyz5VeFfGO/VZ\ndshivnYug2V5rJfmsnd1OJkkjT5EglkBydOC1N7gSZGHfFnNLFywFVyYB1xp\nAWitBhzNimFTmO7tTvYVjNhfLZ6xrw7ri7re0Skq7+BeLQOxRqZwf5SVKbyd\ntJwo\r\n=dcyZ\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIFw7AkqTwX0vsg4dQomOCCNLG0ISFTDCiarKJZwmv84aAiEAjpPFJ1GvrJL4mflc6tYMV+7uRiMkfgb3xyGfCmbO7p0="}],"size":5691,"noattachment":false,"key":"/postcss-pseudo-class-any-link/-/postcss-pseudo-class-any-link-7.0.2.tgz"},"_npmUser":{"name":"alaguna","email":"sombragriselros@gmail.com"},"directories":{},"maintainers":[{"name":"alaguna","email":"sombragriselros@gmail.com"},{"name":"jonathantneal","email":"jonathantneal@hotmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/postcss-pseudo-class-any-link_7.0.2_1641136925677_0.11665954357369146"},"_hasShrinkwrap":false,"readme":"# PostCSS Pseudo Class Any Link [<img src=\"https://postcss.github.io/postcss/logo.svg\" alt=\"PostCSS Logo\" width=\"90\" height=\"90\" align=\"right\">][PostCSS]\n\n[<img alt=\"npm version\" src=\"https://img.shields.io/npm/v/postcss-pseudo-class-any-link.svg\" height=\"20\">][npm-url] [<img alt=\"Build Status\" src=\"https://github.com/csstools/postcss-plugins/workflows/test/badge.svg\" height=\"20\">][cli-url] [<img alt=\"Discord\" src=\"https://shields.io/badge/Discord-5865F2?logo=discord&logoColor=white\">][discord]<br><br>[<img alt=\"Baseline Status\" src=\"https://cssdb.org/images/badges-baseline/any-link-pseudo-class.svg\" height=\"20\">][css-url] [<img alt=\"CSS Standard Status\" src=\"https://cssdb.org/images/badges/any-link-pseudo-class.svg\" height=\"20\">][css-url] \n\n```bash\nnpm install postcss-pseudo-class-any-link --save-dev\n```\n\n[PostCSS Pseudo Class Any Link] lets you `:any-link` pseudo-class in CSS,\nfollowing the [Selectors] specification.\n\n```pcss\nnav :any-link > span {\n\tbackground-color: yellow;\n}\n\n/* becomes */\n\nnav :link > span, nav :visited > span {\n\tbackground-color: yellow;\n}\nnav :any-link > span {\n\tbackground-color: yellow;\n}\n```\n\n## Usage\n\nAdd [PostCSS Pseudo Class Any Link] to your project:\n\n```bash\nnpm install postcss postcss-pseudo-class-any-link --save-dev\n```\n\nUse it as a [PostCSS] plugin:\n\n```js\nconst postcss = require('postcss');\nconst postcssPseudoClassAnyLink = require('postcss-pseudo-class-any-link');\n\npostcss([\n\tpostcssPseudoClassAnyLink(/* pluginOptions */)\n]).process(YOUR_CSS /*, processOptions */);\n```\n\n[PostCSS Pseudo Class Any Link] runs in all Node environments, with special\ninstructions for:\n\n- [Node](INSTALL.md#node)\n- [PostCSS CLI](INSTALL.md#postcss-cli)\n- [PostCSS Load Config](INSTALL.md#postcss-load-config)\n- [Webpack](INSTALL.md#webpack)\n- [Next.js](INSTALL.md#nextjs)\n- [Gulp](INSTALL.md#gulp)\n- [Grunt](INSTALL.md#grunt)\n\n## Options\n\n### preserve\n\nThe `preserve` option determines whether the original notation\nis preserved. By default, it is preserved.\n\n```js\npostcssPseudoClassAnyLink({ preserve: false })\n```\n\n```pcss\nnav :any-link > span {\n\tbackground-color: yellow;\n}\n\n/* becomes */\n\nnav :link > span, nav :visited > span {\n\tbackground-color: yellow;\n}\n```\n\n### subFeatures\n\n#### areaHrefNeedsFixing\n\nThe `subFeatures.areaHrefNeedsFixing` option determines if `<area href>` elements should match `:any-link` pseudo-class.<br>\nIn IE and Edge these do not match `:link` or `:visited`.\n\n_This increased CSS bundle size and is disabled by default._\n\n```js\npostcssPseudoClassAnyLink({\n\tsubFeatures: {\n\t\tareaHrefNeedsFixing: true\n\t}\n})\n```\n\n```pcss\nnav :any-link > span {\n\tbackground-color: yellow;\n}\n\n/* becomes */\n\nnav :link > span, nav :visited > span, nav area[href] > span {\n\tbackground-color: yellow;\n}\nnav :any-link > span {\n\tbackground-color: yellow;\n}\n```\n\n[cli-url]: https://github.com/csstools/postcss-plugins/actions/workflows/test.yml?query=workflow/test\n[css-url]: https://cssdb.org/#any-link-pseudo-class\n[discord]: https://discord.gg/bUadyRwkJS\n[npm-url]: https://www.npmjs.com/package/postcss-pseudo-class-any-link\n\n[PostCSS]: https://github.com/postcss/postcss\n[PostCSS Pseudo Class Any Link]: https://github.com/csstools/postcss-plugins/tree/main/plugins/postcss-pseudo-class-any-link\n[Selectors]: https://www.w3.org/TR/selectors-4/#the-any-link-pseudo\n","publish_time":1641136925817,"_cnpm_publish_time":1641136925817,"dist-tags":{"latest":"11.0.1"}}