{
  "manifest": {
    "name": "postcss-custom-selectors",
    "description": "Use Custom Selectors in CSS",
    "version": "6.0.3",
    "contributors": [
      {
        "name": "Antonio Laguna",
        "email": "antonio@laguna.es",
        "url": "https://antonio.laguna.es"
      },
      {
        "name": "Romain Menke",
        "email": "romainmenke@gmail.com"
      },
      {
        "name": "Jonathan Neal",
        "email": "jonathantneal@hotmail.com"
      },
      {
        "name": "Maxime Thirouin"
      },
      {
        "name": "yisi"
      }
    ],
    "license": "MIT",
    "funding": {
      "type": "opencollective",
      "url": "https://opencollective.com/csstools"
    },
    "engines": {
      "node": "^12 || ^14 || >=16"
    },
    "main": "dist/index.cjs",
    "module": "dist/index.mjs",
    "exports": {
      ".": {
        "import": "./dist/index.mjs",
        "require": "./dist/index.cjs",
        "default": "./dist/index.mjs"
      }
    },
    "files": [
      "CHANGELOG.md",
      "LICENSE.md",
      "README.md",
      "dist"
    ],
    "dependencies": {
      "postcss-selector-parser": "^6.0.4"
    },
    "peerDependencies": {
      "postcss": "^8.3"
    },
    "scripts": {
      "build": "rollup -c ../../rollup/default.js",
      "clean": "node -e \"fs.rmSync('./dist', { recursive: true, force: true });\"",
      "docs": "node ../../.github/bin/generate-docs/install.mjs && node ../../.github/bin/generate-docs/readme.mjs",
      "lint": "npm run lint:eslint && npm run lint:package-json",
      "lint:eslint": "eslint ./src --ext .js --ext .ts --ext .mjs --no-error-on-unmatched-pattern",
      "lint:package-json": "node ../../.github/bin/format-package-json.mjs",
      "prepublishOnly": "npm run clean && npm run build && npm run test",
      "test": "node .tape.cjs && node .tape.mjs && npm run test:exports",
      "test:exports": "node ./test/_import.mjs && node ./test/_require.cjs",
      "test:rewrite-expects": "REWRITE_EXPECTS=true node .tape.mjs && REWRITE_EXPECTS=true node .tape.cjs"
    },
    "homepage": "https://github.com/csstools/postcss-plugins/tree/main/plugins/postcss-custom-selectors#readme",
    "repository": {
      "type": "git",
      "url": "https://github.com/csstools/postcss-plugins.git",
      "directory": "plugins/postcss-custom-selectors"
    },
    "bugs": {
      "url": "https://github.com/csstools/postcss-plugins/issues"
    },
    "keywords": [
      "at-rule",
      "atrule",
      "css",
      "csswg",
      "custom",
      "declarative",
      "extensions",
      "postcss",
      "postcss-plugin",
      "rule",
      "selectors",
      "specification",
      "w3c"
    ],
    "csstools": {
      "cssdbId": "custom-selectors",
      "exportName": "postcssCustomSelectors",
      "humanReadableName": "PostCSS Custom Selectors",
      "specUrl": "https://drafts.csswg.org/css-extensions/#custom-selectors"
    },
    "volta": {
      "extends": "../../package.json"
    },
    "_registry": "npm",
    "_loc": "/homez.1033/heliovt/.cache/yarn/v6/npm-postcss-custom-selectors-6.0.3-1ab4684d65f30fed175520f82d223db0337239d9-integrity/node_modules/postcss-custom-selectors/package.json",
    "readmeFilename": "README.md",
    "readme": "# PostCSS Custom Selectors [<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-custom-selectors.svg\" height=\"20\">][npm-url] [<img alt=\"CSS Standard Status\" src=\"https://cssdb.org/images/badges/custom-selectors.svg\" height=\"20\">][css-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]\n\n[PostCSS Custom Selectors] lets you define `@custom-selector` in CSS following the [Custom Selectors Specification].\n\n```pcss\n@custom-selector :--heading h1, h2, h3;\n\narticle :--heading + p {\n\tmargin-top: 0;\n}\n\n/* becomes */\n\narticle h1 + p,article h2 + p,article h3 + p {\n\tmargin-top: 0;\n}\n```\n\n## Usage\n\nAdd [PostCSS Custom Selectors] to your project:\n\n```bash\nnpm install postcss postcss-custom-selectors --save-dev\n```\n\nUse it as a [PostCSS] plugin:\n\n```js\nconst postcss = require('postcss');\nconst postcssCustomSelectors = require('postcss-custom-selectors');\n\npostcss([\n\tpostcssCustomSelectors(/* pluginOptions */)\n]).process(YOUR_CSS /*, processOptions */);\n```\n\n[PostCSS Custom Selectors] runs in all Node environments, with special\ninstructions for:\n\n| [Node](INSTALL.md#node) | [PostCSS CLI](INSTALL.md#postcss-cli) | [Webpack](INSTALL.md#webpack) | [Create React App](INSTALL.md#create-react-app) | [Gulp](INSTALL.md#gulp) | [Grunt](INSTALL.md#grunt) |\n| --- | --- | --- | --- | --- | --- |\n\n## Options\n\n### preserve\n\nThe `preserve` option determines whether the original notation\nis preserved. By default, it is not preserved.\n\n```js\npostcssCustomSelectors({ preserve: true })\n```\n\n```pcss\n@custom-selector :--heading h1, h2, h3;\n\narticle :--heading + p {\n\tmargin-top: 0;\n}\n\n/* becomes */\n\n@custom-selector :--heading h1, h2, h3;\n\narticle h1 + p,article h2 + p,article h3 + p {\n\tmargin-top: 0;\n}\n\narticle :--heading + p {\n\tmargin-top: 0;\n}\n```\n\n### importFrom\n\nThe `importFrom` option specifies sources where custom selectors can be\nimported from, which might be CSS, JS, and JSON files, functions, and directly\npassed objects.\n\n```js\npostcssCustomSelectors({\n\timportFrom: 'path/to/file.css' // => @custom-selector :--heading h1, h2, h3;\n});\n```\n\n```pcss\narticle :--heading + p {\n\tmargin-top: 0;\n}\n\n/* becomes */\n\narticle h1 + p, article h2 + p, article h3 + p {}\n```\n\nMultiple sources can be passed into this option, and they will be parsed in the\norder they are received. JavaScript files, JSON files, functions, and objects\nwill need to namespace custom selectors using the `customProperties` or\n`custom-properties` key.\n\n```js\npostcssCustomSelectors({\n\timportFrom: [\n\t\t'path/to/file.css',\n\t\t'and/then/this.js',\n\t\t'and/then/that.json',\n\t\t{\n\t\t\tcustomSelectors: { ':--heading': 'h1, h2, h3' }\n\t\t},\n\t\t() => {\n\t\t\tconst customProperties = { ':--heading': 'h1, h2, h3' };\n\n\t\t\treturn { customProperties };\n\t\t}\n\t]\n});\n```\n\n### exportTo\n\nThe `exportTo` option specifies destinations where custom selectors can be\nexported to, which might be CSS, JS, and JSON files, functions, and directly\npassed objects.\n\n```js\npostcssCustomSelectors({\n\texportTo: 'path/to/file.css' // @custom-selector :--heading h1, h2, h3;\n});\n```\n\nMultiple destinations can be passed into this option, and they will be parsed\nin the order they are received. JavaScript files, JSON files, and objects will\nneed to namespace custom selectors using the `customProperties` or\n`custom-properties` key.\n\n```js\nconst cachedObject = { customSelectors: {} };\n\npostcssCustomSelectors({\n\texportTo: [\n\t\t'path/to/file.css',   // @custom-selector :--heading h1, h2, h3;\n\t\t'and/then/this.js',   // module.exports = { customSelectors: { ':--heading': 'h1, h2, h3' } }\n\t\t'and/then/this.mjs',  // export const customSelectors = { ':--heading': 'h1, h2, h3' } }\n\t\t'and/then/that.json', // { \"custom-selectors\": { \":--heading\": \"h1, h2, h3\" } }\n\t\tcachedObject,\n\t\tcustomProperties => {\n\t\t\tcustomProperties    // { ':--heading': 'h1, h2, h3' }\n\t\t}\n\t]\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/#custom-selectors\n[discord]: https://discord.gg/bUadyRwkJS\n[npm-url]: https://www.npmjs.com/package/postcss-custom-selectors\n\n[Gulp PostCSS]: https://github.com/postcss/gulp-postcss\n[Grunt PostCSS]: https://github.com/nDmitry/grunt-postcss\n[PostCSS]: https://github.com/postcss/postcss\n[PostCSS Loader]: https://github.com/postcss/postcss-loader\n[PostCSS Custom Selectors]: https://github.com/csstools/postcss-plugins/tree/main/plugins/postcss-custom-selectors\n[Custom Selectors Specification]: https://drafts.csswg.org/css-extensions/#custom-selectors\n",
    "licenseText": "# The MIT License (MIT)\n\nCopyright © PostCSS\n\nPermission is hereby granted, free of charge, to any person obtaining a copy of\nthis software and associated documentation files (the \"Software\"), to deal in\nthe Software without restriction, including without limitation the rights to\nuse, copy, modify, merge, publish, distribute, sublicense, and/or sell copies\nof the Software, and to permit persons to whom the Software is furnished to do\nso, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.\n"
  },
  "artifacts": [],
  "remote": {
    "resolved": "https://registry.yarnpkg.com/postcss-custom-selectors/-/postcss-custom-selectors-6.0.3.tgz#1ab4684d65f30fed175520f82d223db0337239d9",
    "type": "tarball",
    "reference": "https://registry.yarnpkg.com/postcss-custom-selectors/-/postcss-custom-selectors-6.0.3.tgz",
    "hash": "1ab4684d65f30fed175520f82d223db0337239d9",
    "integrity": "sha512-fgVkmyiWDwmD3JbpCmB45SvvlCD6z9CG6Ie6Iere22W5aHea6oWa7EM2bpnv2Fj3I94L3VbtvX9KqwSi5aFzSg==",
    "registry": "npm",
    "packageName": "postcss-custom-selectors",
    "cacheIntegrity": "sha512-fgVkmyiWDwmD3JbpCmB45SvvlCD6z9CG6Ie6Iere22W5aHea6oWa7EM2bpnv2Fj3I94L3VbtvX9KqwSi5aFzSg== sha1-GrRoTWXzD+0XVSD4LSI9sDNyOdk="
  },
  "registry": "npm",
  "hash": "1ab4684d65f30fed175520f82d223db0337239d9"
}