{"name":"@csstools/postcss-nested-calc","description":"Use nested calc() expressions in CSS","version":"3.0.2","contributors":[{"name":"Antonio Laguna","email":"antonio@laguna.es","url":"https://antonio.laguna.es"},{"name":"Romain Menke","email":"romainmenke@gmail.com"}],"license":"MIT-0","funding":[{"type":"github","url":"https://github.com/sponsors/csstools"},{"type":"opencollective","url":"https://opencollective.com/csstools"}],"engines":{"node":"^14 || ^16 || >=18"},"type":"module","main":"dist/index.cjs","module":"dist/index.mjs","exports":{".":{"import":{"types":"./dist/index.d.ts","default":"./dist/index.mjs"},"require":{"default":"./dist/index.cjs"}}},"dependencies":{"@csstools/utilities":"^1.0.0","postcss-value-parser":"^4.2.0"},"peerDependencies":{"postcss":"^8.4"},"homepage":"https://github.com/csstools/postcss-plugins/tree/main/plugins/postcss-nested-calc#readme","repository":{"type":"git","url":"git+https://github.com/csstools/postcss-plugins.git","directory":"plugins/postcss-nested-calc"},"bugs":{"url":"https://github.com/csstools/postcss-plugins/issues"},"keywords":["calc","css","math","nested","postcss-plugin"],"_id":"@csstools/postcss-nested-calc@3.0.2","gitHead":"78ca2a7e587499d53db2eb89075cdc49c1f7ddd3","types":"./dist/index.d.ts","_nodeVersion":"20.10.0","_npmVersion":"10.2.3","dist":{"integrity":"sha512-ySUmPyawiHSmBW/VI44+IObcKH0v88LqFe0d09Sb3w4B1qjkaROc6d5IA3ll9kjD46IIX/dbO5bwFN/swyoyZA==","shasum":"72ae4d087987ab5596397f5c2e5db4403b81c4a9","tarball":"http://registry-npm.ywwl.com/@csstools/postcss-nested-calc/download/@csstools/postcss-nested-calc-3.0.2.tgz","fileCount":7,"unpackedSize":7215,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCPY8HAlDhi3uyDa9WBAlaApkkdUJCaCt6wHu080VrwoAIhANdPbhpDkpE12kZ5Gp4IDeNFprZrCCXESSMFugOs3dr0"}],"size":3097,"noattachment":false,"key":"/@csstools/postcss-nested-calc/-/@csstools/postcss-nested-calc-3.0.2.tgz"},"_npmUser":{"name":"romainmenke","email":"romainmenke@gmail.com"},"directories":{},"maintainers":[{"name":"romainmenke","email":"romainmenke@gmail.com"},{"name":"alaguna","email":"sombragriselros@gmail.com"},{"name":"jonathantneal","email":"jonathantneal@hotmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/postcss-nested-calc_3.0.2_1708329854664_0.21372787390057035"},"_hasShrinkwrap":false,"readme":"# PostCSS Nested Calc [<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-nested-calc.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/nested-calc.svg\" height=\"20\">][css-url] [<img alt=\"CSS Standard Status\" src=\"https://cssdb.org/images/badges/nested-calc.svg\" height=\"20\">][css-url] \n\n```bash\nnpm install @csstools/postcss-nested-calc --save-dev\n```\n\n[PostCSS Nested Calc] lets you use nested `calc()` expressions following the [CSS Values and Units 4 specification].\n\n```pcss\n.example {\n\torder: calc(1 + calc(2 * 2));\n}\n\n/* becomes */\n\n.example {\n\torder: calc(1 + (2 * 2));\n\torder: calc(1 + calc(2 * 2));\n}\n```\n\n## Usage\n\nAdd [PostCSS Nested Calc] to your project:\n\n```bash\nnpm install postcss @csstools/postcss-nested-calc --save-dev\n```\n\nUse it as a [PostCSS] plugin:\n\n```js\nconst postcss = require('postcss');\nconst postcssNestedCalc = require('@csstools/postcss-nested-calc');\n\npostcss([\n\tpostcssNestedCalc(/* pluginOptions */)\n]).process(YOUR_CSS /*, processOptions */);\n```\n\n[PostCSS Nested Calc] 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 the original values are preserved.\n\n```js\npostcssNestedCalc({ preserve: false })\n```\n\n```pcss\n.example {\n\torder: calc(1 + calc(2 * 2));\n}\n\n/* becomes */\n\n.example {\n\torder: calc(1 + (2 * 2));\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/#nested-calc\n[discord]: https://discord.gg/bUadyRwkJS\n[npm-url]: https://www.npmjs.com/package/@csstools/postcss-nested-calc\n\n[PostCSS]: https://github.com/postcss/postcss\n[PostCSS Nested Calc]: https://github.com/csstools/postcss-plugins/tree/main/plugins/postcss-nested-calc\n[CSS Values and Units 4 specification]: https://www.w3.org/TR/css-values/#calc-func\n","publish_time":1708329854787,"_cnpm_publish_time":1708329854787,"dist-tags":{"latest":"5.0.2"}}