{"_id":"@csstools/postcss-nested-calc@5.0.2","bugs":{"url":"https://github.com/csstools/postcss-plugins/issues"},"dist":{"shasum":"46b98257c49e330f96e4d2c0a099b9afb8a64c9d","tarball":"http://registry-npm.ywwl.com/@csstools/postcss-nested-calc/download/@csstools/postcss-nested-calc-5.0.2.tgz","fileCount":6,"integrity":"sha512-u+OnM8nJQoNHPemTqPtGD/9gs8oM7um9IS8uLNe2L4k5JlDbeZov/Ss/gZjWNhs3cw4Fuj1urtVUhj2iaeyycQ==","signatures":[{"sig":"MEUCICK55c+lP35/GJrTGNfrHoGg+FLjA/wNXh6Fe4ZSLzb4AiEA4mRQPiF234/OzAj8yZjZbfcvyW4IXbkmv8zGNYnHhKk=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"},{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEUCIC2mX+WZT0mNbEwxfu9ltbmUPnW64WwEHqx0m/xYG9xRAiEA9+uBe6d9tNuLdFvae9OHCJoKdhor8uVwHmyoH+WE8s0="}],"unpackedSize":5383,"size":2644,"noattachment":false,"key":"/@csstools/postcss-nested-calc/-/@csstools/postcss-nested-calc-5.0.2.tgz"},"name":"@csstools/postcss-nested-calc","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":"766d90244be85d01a7860fa1e67b96b62100ee5b","license":"MIT-0","scripts":{},"version":"5.0.2","_npmUser":{"name":"romainmenke","email":"romainmenke@gmail.com"},"homepage":"https://github.com/csstools/postcss-plugins/tree/main/plugins/postcss-nested-calc#readme","keywords":["calc","css","math","nested","postcss-plugin"],"repository":{"url":"git+https://github.com/csstools/postcss-plugins.git","type":"git","directory":"plugins/postcss-nested-calc"},"_npmVersion":"11.13.0","description":"Use nested calc() expressions 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":{"@csstools/utilities":"^3.0.0","postcss-value-parser":"^4.2.0"},"_hasShrinkwrap":false,"peerDependencies":{"postcss":"^8.4"},"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/postcss-nested-calc_5.0.2_1790346034806_0.9249606854023216"},"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`npm install @csstools/postcss-nested-calc --save-dev`\n\n[PostCSS Nested Calc] lets you use nested `calc()` expressions following the [CSS Values and Units 4 specification].\n\n```css\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\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```css\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":1790346034911,"_cnpm_publish_time":1790346034911,"dist-tags":{"latest":"5.0.2"}}