{"_id":"@csstools/postcss-syntax-descriptor-syntax-production@2.0.2","bugs":{"url":"https://github.com/csstools/postcss-plugins/issues"},"dist":{"shasum":"2e94b138f30ba6bfc39cea16e5cdca463b874621","tarball":"http://registry-npm.ywwl.com/@csstools/postcss-syntax-descriptor-syntax-production/download/@csstools/postcss-syntax-descriptor-syntax-production-2.0.2.tgz","fileCount":6,"integrity":"sha512-OTxaQhq+tlQDGpDUvrbUrvqiFMLgCx/MlYfitqfLXro5S7+pV+wCg2MTjlBd39Z4l6MeAeKE8RinPuSbgSJzGA==","signatures":[{"sig":"MEYCIQDUDw6dcHdhBSMX3zTEp64/xDGcPx2PksCvtLRqk8MoDQIhAKhupmSu+oxJlmBZ20RJDEjMOhvjBOQCocuURk/wsFbt","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"},{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEUCIQDw94dyFFRJC2khx08I+XG3VZD2EECcgSiApFClT3CXMAIgWMpT8pCVeqQQuiGPAH7Ssg9D8pv+BD6UfxR02iGYkAM="}],"unpackedSize":6487,"size":2847,"noattachment":false,"key":"/@csstools/postcss-syntax-descriptor-syntax-production/-/@csstools/postcss-syntax-descriptor-syntax-production-2.0.2.tgz"},"name":"@csstools/postcss-syntax-descriptor-syntax-production","type":"module","engines":{"node":">=20.19.0"},"exports":{".":{"types":"./dist/index.d.ts","default":"./dist/index.mjs"}},"funding":[{"url":"https://github.com/sponsors/csstools","type":"github"},{"url":"https://opencollective.com/csstools","type":"opencollective"}],"gitHead":"f2f8ac5791b9945d22f43582ebf8ee5dd9e04067","license":"MIT-0","scripts":{},"version":"2.0.2","_npmUser":{"name":"romainmenke","email":"romainmenke@gmail.com"},"homepage":"https://github.com/csstools/postcss-plugins/tree/main/plugins/postcss-syntax-descriptor-syntax-production#readme","keywords":["css","descriptor","postcss","postcss-plugin","syntax"],"repository":{"url":"git+https://github.com/csstools/postcss-plugins.git","type":"git","directory":"plugins/postcss-syntax-descriptor-syntax-production"},"_npmVersion":"11.13.0","description":"Use the syntax production in syntax descriptors","directories":{},"maintainers":[{"name":"jonathantneal","email":"jonathantneal@hotmail.com"},{"name":"alaguna","email":"sombragriselros@gmail.com"},{"name":"romainmenke","email":"romainmenke@gmail.com"}],"_nodeVersion":"26.1.0","contributors":[{"url":"https://antonio.laguna.es","name":"Antonio Laguna","email":"antonio@laguna.es"},{"name":"Romain Menke","email":"romainmenke@gmail.com"}],"dependencies":{"@csstools/css-tokenizer":"^4.0.3"},"_hasShrinkwrap":false,"peerDependencies":{"postcss":"^8.4"},"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/postcss-syntax-descriptor-syntax-production_2.0.2_1794918226064_0.960737798398087"},"readme":"# PostCSS Syntax Descriptor Syntax Production [<img src=\"https://postcss.github.io/postcss/logo.svg\" alt=\"PostCSS Logo\" width=\"90\" height=\"90\" align=\"right\">][PostCSS]\n\n`npm install @csstools/postcss-syntax-descriptor-syntax-production --save-dev`\n\n[PostCSS Syntax Descriptor Syntax Production] lets you use the `<syntax>` production in `syntax` descriptors following the [CSS Specification].\n\n```css\n@property --color {\n\tinherits: true;\n\tinitial-value: black;\n\tsyntax: <color>;\n}\n\n/* becomes */\n\n@property --color {\n\tinherits: true;\n\tinitial-value: black;\n\tsyntax: \"<color>\";\n}\n```\n\n## Usage\n\nAdd [PostCSS Syntax Descriptor Syntax Production] to your project:\n\n```bash\nnpm install postcss @csstools/postcss-syntax-descriptor-syntax-production --save-dev\n```\n\nUse it as a [PostCSS] plugin:\n\n```js\nconst postcss = require('postcss');\nconst postcssSyntaxDescriptorSyntaxProduction = require('@csstools/postcss-syntax-descriptor-syntax-production');\n\npostcss([\n\tpostcssSyntaxDescriptorSyntaxProduction(/* pluginOptions */)\n]).process(YOUR_CSS /*, processOptions */);\n```\n\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\npostcssSyntaxDescriptorSyntaxProduction({ preserve: true })\n```\n\n```css\n@property --color {\n\tinherits: true;\n\tinitial-value: black;\n\tsyntax: <color>;\n}\n\n/* becomes */\n\n@property --color {\n\tinherits: true;\n\tinitial-value: black;\n\tsyntax: \"<color>\";\n\tsyntax: <color>;\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/#syntax-descriptor-syntax-production\n[discord]: https://discord.gg/bUadyRwkJS\n[npm-url]: https://www.npmjs.com/package/@csstools/postcss-syntax-descriptor-syntax-production\n\n[PostCSS]: https://github.com/postcss/postcss\n[PostCSS Syntax Descriptor Syntax Production]: https://github.com/csstools/postcss-plugins/tree/main/plugins/postcss-syntax-descriptor-syntax-production\n[CSS Specification]: https://github.com/w3c/csswg-drafts/issues/11426#issuecomment-3657538113\n","publish_time":1794918226157,"_cnpm_publish_time":1794918226157,"dist-tags":{"latest":"2.0.2"}}