{"name":"@csstools/postcss-nested-calc","description":"Use nested calc() expressions in CSS","version":"2.0.2","contributors":[{"name":"Antonio Laguna","email":"antonio@laguna.es","url":"https://antonio.laguna.es"},{"name":"Romain Menke","email":"romainmenke@gmail.com"}],"license":"CC0-1.0","funding":{"type":"opencollective","url":"https://opencollective.com/csstools"},"engines":{"node":"^14 || ^16 || >=18"},"main":"dist/index.cjs","module":"dist/index.mjs","types":"dist/index.d.ts","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.mjs","require":"./dist/index.cjs","default":"./dist/index.mjs"}},"dependencies":{"postcss-value-parser":"^4.2.0"},"peerDependencies":{"postcss":"^8.4"},"scripts":{"prebuild":"npm run clean","build":"rollup -c ../../rollup/default.mjs","clean":"node -e \"fs.rmSync('./dist', { recursive: true, force: true }); fs.mkdirSync('./dist');\"","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","lint:eslint":"eslint ./src --ext .js --ext .ts --ext .mjs --no-error-on-unmatched-pattern","lint:package-json":"node ../../.github/bin/format-package-json.mjs","prepublishOnly":"npm run clean && npm run build && npm run test","test":"node .tape.mjs && npm run test:exports","test:exports":"node ./test/_import.mjs && node ./test/_require.cjs","test:rewrite-expects":"REWRITE_EXPECTS=true node .tape.mjs"},"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"],"csstools":{"cssdbId":"nested-calc","exportName":"postcssNestedCalc","humanReadableName":"PostCSS Nested Calc","specUrl":"https://www.w3.org/TR/css-values/#calc-func"},"volta":{"extends":"../../package.json"},"gitHead":"a0e5c3970940e56134e739d95e666b27dcff51e9","_id":"@csstools/postcss-nested-calc@2.0.2","_nodeVersion":"18.13.0","_npmVersion":"9.4.1","dist":{"integrity":"sha512-jbwrP8rN4e7LNaRcpx3xpMUjhtt34I9OV+zgbcsYAAk6k1+3kODXJBf95/JMYWhu9g1oif7r06QVUgfWsKxCFw==","shasum":"a0857650ef88b1aa7b094c7ea8ea1378c35695e0","tarball":"http://registry-npm.ywwl.com/@csstools/postcss-nested-calc/download/@csstools/postcss-nested-calc-2.0.2.tgz","fileCount":9,"unpackedSize":14175,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDW/7xhLOexWojWMhimieQDQNqd/VSophndpbcQ1lCNowIhAPWLmHqhgT0cTn+LxU7Jr+KwPRZwI9pk/Qw3nAMdt+13"}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJj5TmsACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmqeUg//R/Vxhy0SLxXaIlrSg3+8KVXiXiR716KxltfLxM68FsQUxeuu\r\ngZqfkZ8ZJneiyuIwq7YMqG2RYajGiLsJvOr1C5RRDtjXbia1xCKAg9IsZJz2\r\ngG/7RDAdwmgqu07dv0jiMYp2/AR9QLgE5PY6ZBV4Rpq7Ui+vr9PZ2Ikbi8uy\r\nTYJRXdZxs0sVVoyEXWc1paN6oxxAg7zChEzqJBq/+9+dh5KBPb+RFhcGmT3n\r\nUT95ZsbJ2HZdwC02vwy07cw/DsWwoL3CpHTeCqSXdBa2nk19ojwWO+bIZo/4\r\nRIi995p88aaC9G2HPGA1nFzc0d5U4g/01+rKLxbSbyjhvZDrcQwIIb/3jJ2c\r\nLryqwv6Phtl3mVVExvsXHr1MNJskzusYTug3Ps89QcSxzwla/w2LxBbOLOZg\r\nDfGLOxewA8H+3IE9HAN245Oa4z4iar3UUW13Bv0tm8UNuJIERUDqzVtX60op\r\nclzr43Fz0lJsaeBgfjaik7kC5+HL7bNv7Z6SmwGYdAHHPz6tCORarav0fd+D\r\n4miII9OaZlCufRMS6f4hLMIuMuuqbX8bTOs5QotFasKGiP9BOpZxuvpgVFkM\r\nVAkhsvfby4hMjls6aN31iLYz+VaJ982mRUHtipPhXD+zXhD/nH/gj9KD5Wqk\r\nfOp24CtaZ+XZDbYhlHQji9UoMMRmUWHF3D0=\r\n=Xmo6\r\n-----END PGP SIGNATURE-----\r\n","size":5504,"noattachment":false,"key":"/@csstools/postcss-nested-calc/-/@csstools/postcss-nested-calc-2.0.2.tgz"},"_npmUser":{"name":"alaguna","email":"sombragriselros@gmail.com"},"directories":{},"maintainers":[{"name":"alaguna","email":"sombragriselros@gmail.com"},{"name":"jonathantneal","email":"jonathantneal@hotmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/postcss-nested-calc_2.0.2_1675966891817_0.3245941698510828"},"_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":1675966891970,"_cnpm_publish_time":1675966891970,"dist-tags":{"latest":"5.0.2"}}