{"_id":"postcss-nested@8.0.1","bugs":{"url":"https://github.com/postcss/postcss-nested/issues"},"dist":{"shasum":"4e204d832d1af59080f4d209df141954622736ec","tarball":"http://registry-npm.ywwl.com/postcss-nested/download/postcss-nested-8.0.1.tgz","integrity":"sha512-PvSIwDVh1NTw939iu4FBK+oeZfSm0cbErFAjXCTPiStammzobBNE2SiQNezy8Xp+Oud2uLXaLpTauv3UdxWjbQ==","fileCount":5,"unpackedSize":14632,"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/postcss-nested@8.0.1","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEYCIQCtIcko60VK+r9W6ZqKJWyRygJs9hrMSGeougTGGiZsMwIhAIOPvs8trTJPDcih+InTp/KSBUyFZqkwjesvmoiaAyEv"}],"size":5288,"noattachment":false,"key":"/postcss-nested/-/postcss-nested-8.0.1.tgz"},"name":"postcss-nested","type":"module","types":"./index.d.ts","author":{"name":"Andrey Sitnik","email":"andrey@sitnik.es"},"engines":{"node":"^22.0.0 || ^24.0.0 || >= 26.0.0"},"exports":{".":"./index.js","./package.json":"./package.json"},"funding":[{"url":"https://opencollective.com/postcss/","type":"opencollective"},{"url":"https://github.com/sponsors/ai","type":"github"}],"gitHead":"4c48e81154a91a16cdc846006002e3e5c84e397c","license":"MIT","version":"8.0.1","_npmUser":{"name":"GitHub Actions","email":"npm-oidc-no-reply@github.com","trustedPublisher":{"id":"github","oidcConfigId":"oidc:0bfcee49-cda0-4820-beb5-ef6a4ebfc26a"},"approver":{"name":"ai","email":"andrey@sitnik.es"}},"homepage":"https://github.com/postcss/postcss-nested#readme","keywords":["css","nested","postcss","postcss-plugin","sass"],"repository":{"url":"git+https://github.com/postcss/postcss-nested.git","type":"git"},"_npmVersion":"11.17.0","description":"PostCSS plugin to unwrap nested rules like how Sass does it","directories":{},"maintainers":[{"name":"ai","email":"andrey@sitnik.es"}],"_nodeVersion":"26.5.1","dependencies":{"postcss-selector-parser":"^7.1.4"},"peerDependencies":{"postcss":"^8.2.14"},"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/postcss-nested_8.0.1_1785698224439_0.06525907502600492"},"_hasShrinkwrap":false,"readme":"# PostCSS Nested\n\n<img align=\"right\" width=\"135\" height=\"95\"\n     title=\"Philosopher’s stone, logo of PostCSS\"\n     src=\"https://postcss.org/logo-leftp.svg\">\n\n[PostCSS] plugin to unwrap nested rules closer to Sass syntax.\n\n```css\n.phone {\n  &_title {\n    width: 500px;\n    @media (max-width: 500px) {\n      width: auto;\n    }\n    body.is_dark & {\n      color: white;\n    }\n  }\n  img {\n    display: block;\n  }\n}\n\n.title {\n  font-size: var(--font);\n\n  @at-root html {\n    --font: 16px;\n  }\n}\n```\n\nwill be processed to:\n\n```css\n.phone_title {\n  width: 500px;\n}\n@media (max-width: 500px) {\n  .phone_title {\n    width: auto;\n  }\n}\nbody.is_dark .phone_title {\n  color: white;\n}\n.phone img {\n  display: block;\n}\n\n.title {\n  font-size: var(--font);\n}\nhtml {\n  --font: 16px;\n}\n```\n\nRelated plugins:\n\n- Use [`postcss-current-selector`] **after** this plugin if you want\n  to use current selector in properties or variables values.\n- Use [`postcss-nested-ancestors`] **before** this plugin if you want\n  to reference any ancestor element directly in your selectors with `^&`.\n\nAlternatives:\n\n- See also [`postcss-nesting`], which implements [CSSWG draft].\n- [`postcss-nested-props`] for nested properties like `font-size`.\n\n---\n\n<img src=\"https://cdn.evilmartians.com/badges/logo-no-label.svg\" alt=\"\" width=\"22\" height=\"16\" />  PostCSS Nested is built by <b><a href=\"https://evilmartians.com/\">Evil Martians</a></b>, an American design and engineering consultancy for <b>developer tools, AI, and cybersecurity startups</b>.\n\n---\n\n[`postcss-current-selector`]: https://github.com/komlev/postcss-current-selector\n[`postcss-nested-ancestors`]: https://github.com/toomuchdesign/postcss-nested-ancestors\n[`postcss-nested-props`]: https://github.com/jedmao/postcss-nested-props\n[`postcss-nesting`]: https://github.com/csstools/postcss-plugins/tree/main/plugins/postcss-nesting\n[CSSWG draft]: https://drafts.csswg.org/css-nesting-1/\n[PostCSS]: https://github.com/postcss/postcss\n","publish_time":1785698224521,"_cnpm_publish_time":1785698224521,"dist-tags":{"latest":"9.0.1"}}