{"name":"@csstools/postcss-text-decoration-shorthand","version":"2.2.0","keywords":["css","postcss-plugin","shorthand","text-decoration","text-decoration-thickness"],"license":"CC0-1.0","_id":"@csstools/postcss-text-decoration-shorthand@2.2.0","contributors":[{"url":"https://antonio.laguna.es","name":"Antonio Laguna","email":"antonio@laguna.es"},{"name":"Romain Menke","email":"romainmenke@gmail.com"}],"homepage":"https://github.com/csstools/postcss-plugins/tree/main/plugins/postcss-text-decoration-shorthand#readme","bugs":{"url":"https://github.com/csstools/postcss-plugins/issues"},"dist":{"shasum":"41a2de9e041a22f738ef110807227f6e83acb107","tarball":"http://registry-npm.ywwl.com/@csstools/postcss-text-decoration-shorthand/download/@csstools/postcss-text-decoration-shorthand-2.2.0.tgz","fileCount":7,"integrity":"sha512-++RtufygqFaeheLH1g8Y2Oi/l+xSt61+c0lQGjrpLUW4hhFo77V4Zsshm0oof7lqnpVXPaizlU0SnXf+f4GA7A==","signatures":[{"sig":"MEUCIBQmZSA/wwEk8jifXltETGQJ8Odpmzikbv4GjR5hhN0ZAiEAqPZ2j6el+4GZgwoRrCxy+7dvsXs3m6pVni/IDOLSCKg=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":19268,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJj23iVACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmr/Wg/+LSScmT8d0hKHQy95jIFEC9Kf48EicT6Qo1iQqrRvtBJ85qJ4\r\nNbCizXSMHyktiQePE0roRgEN8wZyyKrm3olq9TKgiYSsoBVqc0QaixH1vw4c\r\nqlP03N4m1pYIF3fa2FFoJczj6WHIz7/7rum+OAw8NgMcl3pOdDH6g6IUyK9I\r\nBNmF9D8JjEfmldDxhk2mncDmZqGLMk26DlZqPuKTamCidRsirPSjQQGql02V\r\n9sXpkPErK8VTXh8AyVo0xfCYy0WUJu6gOj67+W8zObKL6ggu4Zm2glZ2TOjh\r\nveUSyAh9DqsmlxZD8AKorF57KsefTnEEVIso/ps/5GPIinILQ24py4G9u6uC\r\nNLF1kUi9Y6UVEwBJSR3oUzBtXifbUm2kIidETQd6nA/BzixJuxCLS6aAOYli\r\nPzhJpSQvpo6rdpUxdKzpxqDcINr4jDf2ytmXQ2YjlFZd/VZCDIk/zdHR9vCY\r\ndCHw4fl69uRTt9ddfFXJR2qfPBVS9qF7FgNNNWlUsVGpZfCsLO8qYMk7rtAY\r\nsz9C8kVynr/qyS/hjji3UX9sS/NPnWoFKXyY1jRrdiEmP9e8vzqnNAoWIKAM\r\niMF1FpwtO505EO9b38ZqDOBBw+l2yHSonS3ObXs9FYbzLOCOlzOs6C4o7YTi\r\n75AiqEQDwcX3bdwK/gtQd8A7wMJewUtgfQ4=\r\n=VLjh\r\n-----END PGP SIGNATURE-----\r\n","size":6287,"noattachment":false,"key":"/@csstools/postcss-text-decoration-shorthand/-/@csstools/postcss-text-decoration-shorthand-2.2.0.tgz"},"main":"dist/index.cjs","types":"dist/index.d.ts","volta":{"extends":"../../package.json"},"module":"dist/index.mjs","engines":{"node":"^14 || ^16 || >=18"},"exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.mjs","default":"./dist/index.mjs","require":"./dist/index.cjs"}},"funding":{"url":"https://opencollective.com/csstools","type":"opencollective"},"gitHead":"de8cb9eaf7af0e2cfb0ca2679a61c40744df680a","scripts":{"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","test":"node .tape.mjs && npm run test:exports","build":"rollup -c ../../rollup/default.mjs","clean":"node -e \"fs.rmSync('./dist', { recursive: true, force: true }); fs.mkdirSync('./dist');\"","prebuild":"npm run clean","lint:eslint":"eslint ./src --ext .js --ext .ts --ext .mjs --no-error-on-unmatched-pattern","test:exports":"node ./test/_import.mjs && node ./test/_require.cjs","prepublishOnly":"npm run clean && npm run build && npm run test","lint:package-json":"node ../../.github/bin/format-package-json.mjs","test:rewrite-expects":"REWRITE_EXPECTS=true node .tape.mjs"},"_npmUser":{"name":"alaguna","email":"sombragriselros@gmail.com"},"csstools":{"cssdbId":"text-decoration-shorthand","specUrl":"https://drafts.csswg.org/css-text-decor-4/#text-decoration-property","exportName":"postcssTextDecorationShorthand","humanReadableName":"PostCSS Text Decoration Shorthand"},"repository":{"url":"git+https://github.com/csstools/postcss-plugins.git","type":"git","directory":"plugins/postcss-text-decoration-shorthand"},"_npmVersion":"9.4.1","description":"Use text-decoration in it's shorthand form in CSS","directories":{},"_nodeVersion":"16.17.1","dependencies":{"postcss-value-parser":"^4.2.0","@csstools/color-helpers":"^1.0.0"},"_hasShrinkwrap":false,"devDependencies":{"autoprefixer":"^10.4.8"},"peerDependencies":{"postcss":"^8.4"},"_npmOperationalInternal":{"tmp":"tmp/postcss-text-decoration-shorthand_2.2.0_1675327637175_0.3762521893418549","host":"s3://npm-registry-packages"},"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[<img alt=\"npm version\" src=\"https://img.shields.io/npm/v/@csstools/postcss-text-decoration-shorthand.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/text-decoration-shorthand.svg\" height=\"20\">][css-url] [<img alt=\"CSS Standard Status\" src=\"https://cssdb.org/images/badges/text-decoration-shorthand.svg\" height=\"20\">][css-url] \n\n```bash\nnpm install @csstools/postcss-text-decoration-shorthand --save-dev\n```\n\n[PostCSS Text Decoration Shorthand] lets you use `text-decoration` as a shorthand following the [Text Decoration Specification].\n\n```pcss\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[PostCSS Text Decoration Shorthand] 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\npostcssTextDecorationShorthand({ preserve: false })\n```\n\n```pcss\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":1675327637359,"maintainers":[{"name":"romainmenke","email":"romainmenke@gmail.com"},{"name":"alaguna","email":"sombragriselros@gmail.com"},{"name":"jonathantneal","email":"jonathantneal@hotmail.com"}],"_cnpm_publish_time":1675327637359,"dist-tags":{"latest":"5.0.8"}}