{"_id":"@csstools/postcss-text-decoration-shorthand@5.0.8","bugs":{"url":"https://github.com/csstools/postcss-plugins/issues"},"dist":{"shasum":"8969734f5bc7523a1cc48d41ca43354bdaa5f322","tarball":"http://registry-npm.ywwl.com/@csstools/postcss-text-decoration-shorthand/download/@csstools/postcss-text-decoration-shorthand-5.0.8.tgz","fileCount":6,"integrity":"sha512-kRX8aYi5o3AxSoqFqlv2LUL7GA3xUuX8oMtmZ7baHEbJO+fw+EDyNmsv6WKkayX2LDcypJcdmw+08QHKHNQ9og==","signatures":[{"sig":"MEYCIQDfAhJ/0oWkSow+14Fsai0caKoAv1PEw7pADmkbKIofzQIhAJtEIrx2qzs7txlnqvAghVi2yybG7gFCptlu+HIGXIjU","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"},{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEYCIQCh77NTq2Xk+NPeZjwHNpiXvkRgeQo8StOEKqI7PcuVhwIhAJghIk1mSqhoqFruIUfPtMW7rjCwezoAPFnNCj5pccTX"}],"unpackedSize":8935,"size":3527,"noattachment":false,"key":"/@csstools/postcss-text-decoration-shorthand/-/@csstools/postcss-text-decoration-shorthand-5.0.8.tgz"},"name":"@csstools/postcss-text-decoration-shorthand","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":"95988d075c1ab654dca5cc31cd2b078eb1eb9096","license":"MIT-0","scripts":{},"version":"5.0.8","_npmUser":{"name":"romainmenke","email":"romainmenke@gmail.com"},"homepage":"https://github.com/csstools/postcss-plugins/tree/main/plugins/postcss-text-decoration-shorthand#readme","keywords":["css","postcss","postcss-plugin","shorthand","text-decoration","text-decoration-thickness"],"repository":{"url":"git+https://github.com/csstools/postcss-plugins.git","type":"git","directory":"plugins/postcss-text-decoration-shorthand"},"_npmVersion":"11.13.0","description":"Use text-decoration in it's shorthand form in CSS","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":{"postcss-value-parser":"^4.2.0","@csstools/color-helpers":"^6.1.3"},"_hasShrinkwrap":false,"peerDependencies":{"postcss":"^8.4"},"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/postcss-text-decoration-shorthand_5.0.8_1794918179984_0.2899177859941957"},"readme":"# PostCSS Text Decoration Shorthand [<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-text-decoration-shorthand --save-dev`\n\n[PostCSS Text Decoration Shorthand] lets you use `text-decoration` as a shorthand following the [Text Decoration Specification].\n\n```css\n.example {\n\ttext-decoration: wavy underline purple 25%;\n}\n\n/* becomes */\n\n.example {\n\ttext-decoration: underline;\n\ttext-decoration: underline wavy purple;\n\ttext-decoration-thickness: calc(0.01em * 25);\n\ttext-decoration: wavy underline purple 25%;\n}\n```\n\n## Usage\n\nAdd [PostCSS Text Decoration Shorthand] to your project:\n\n```bash\nnpm install postcss @csstools/postcss-text-decoration-shorthand --save-dev\n```\n\nUse it as a [PostCSS] plugin:\n\n```js\nconst postcss = require('postcss');\nconst postcssTextDecorationShorthand = require('@csstools/postcss-text-decoration-shorthand');\n\npostcss([\n\tpostcssTextDecorationShorthand(/* 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 preserved.\n\n```js\npostcssTextDecorationShorthand({ preserve: false })\n```\n\n```css\n.example {\n\ttext-decoration: wavy underline purple 25%;\n}\n\n/* becomes */\n\n.example {\n\ttext-decoration: underline;\n\ttext-decoration: underline wavy purple;\n\ttext-decoration-thickness: calc(0.01em * 25);\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/#text-decoration-shorthand\n[discord]: https://discord.gg/bUadyRwkJS\n[npm-url]: https://www.npmjs.com/package/@csstools/postcss-text-decoration-shorthand\n\n[PostCSS]: https://github.com/postcss/postcss\n[PostCSS Text Decoration Shorthand]: https://github.com/csstools/postcss-plugins/tree/main/plugins/postcss-text-decoration-shorthand\n[Text Decoration Specification]: https://drafts.csswg.org/css-text-decor-4/#text-decoration-property\n","publish_time":1794918180085,"_cnpm_publish_time":1794918180085,"dist-tags":{"latest":"5.0.8"}}