{"_id":"@csstools/postcss-exponential-functions@3.0.9","bugs":{"url":"https://github.com/csstools/postcss-plugins/issues"},"dist":{"shasum":"df935f1e15091ae43817f0d96d395d37a6dc8075","tarball":"http://registry-npm.ywwl.com/@csstools/postcss-exponential-functions/download/@csstools/postcss-exponential-functions-3.0.9.tgz","fileCount":6,"integrity":"sha512-8WoejAGVNitV6dYMNcQH+V8ZXNd/YtettN2QurnzcT+3ShQ4ZpeYibujPYAlC3jtMrB/od9i/WFj0nlznBEoDw==","signatures":[{"sig":"MEQCIHXpWlcXnwwHEXWNd0a7COcRW15G1eNwcFtLspOJVe9zAiAu8w/y3Ocf6Rc4SfcU9nxFi19jd26v5QWVPgEgY/rDIg==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"},{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEYCIQD7fkCPrIh9/58X+wSOukmLokItqXkQXrW1f+IxnGmLFQIhANFVmFfMn35GiAbzpVlnpyGMos29jw6LNSTppcQpOYt4"}],"unpackedSize":5943,"size":2665,"noattachment":false,"key":"/@csstools/postcss-exponential-functions/-/@csstools/postcss-exponential-functions-3.0.9.tgz"},"name":"@csstools/postcss-exponential-functions","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":"9f3746bbecf0afcfed1e726abf2bd8558628bdaf","license":"MIT-0","scripts":{},"version":"3.0.9","_npmUser":{"name":"romainmenke","email":"romainmenke@gmail.com"},"homepage":"https://github.com/csstools/postcss-plugins/tree/main/plugins/postcss-exponential-functions#readme","keywords":["css","exp","exponential","function","hypot","log","math","postcss","postcss-plugin","pow","sqrt"],"repository":{"url":"git+https://github.com/csstools/postcss-plugins.git","type":"git","directory":"plugins/postcss-exponential-functions"},"_npmVersion":"11.13.0","description":"Use pow(), sqrt(), hypot(), log(), exp() exponential functions 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/css-calc":"^3.4.3","@csstools/css-tokenizer":"^4.0.2","@csstools/css-parser-algorithms":"^4.0.2"},"_hasShrinkwrap":false,"peerDependencies":{"postcss":"^8.4"},"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/postcss-exponential-functions_3.0.9_1790956576750_0.2120407657452803"},"readme":"# PostCSS Exponential Functions [<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-exponential-functions --save-dev`\n\n[PostCSS Exponential Functions] lets you use the `pow()`, `sqrt()`, `hypot()`, `log()`, `exp()` functions following the [CSS Values 4 Specification].\n\n```css\n.foo {\n\ttop: calc(1px * pow(2, 3));\n\tline-height: sqrt(1.2);\n\tpadding: hypot(3px, 4px);\n\torder: log(10, 10);\n\tmin-height: calc(e - exp(1));\n}\n\n/* becomes */\n\n.foo {\n\ttop: calc(8px);\n\tline-height: calc(1.09545);\n\tpadding: calc(5px);\n\torder: calc(1);\n\tmin-height: calc(0);\n}\n```\n\n## Usage\n\nAdd [PostCSS Exponential Functions] to your project:\n\n```bash\nnpm install postcss @csstools/postcss-exponential-functions --save-dev\n```\n\nUse it as a [PostCSS] plugin:\n\n```js\nconst postcss = require('postcss');\nconst postcssExponentialFunctions = require('@csstools/postcss-exponential-functions');\n\npostcss([\n\tpostcssExponentialFunctions(/* 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 not preserved.\n\n```js\npostcssExponentialFunctions({ preserve: true })\n```\n\n```css\n.foo {\n\ttop: calc(1px * pow(2, 3));\n\tline-height: sqrt(1.2);\n\tpadding: hypot(3px, 4px);\n\torder: log(10, 10);\n\tmin-height: calc(e - exp(1));\n}\n\n/* becomes */\n\n.foo {\n\ttop: calc(8px);\n\ttop: calc(1px * pow(2, 3));\n\tline-height: calc(1.09545);\n\tline-height: sqrt(1.2);\n\tpadding: calc(5px);\n\tpadding: hypot(3px, 4px);\n\torder: calc(1);\n\torder: log(10, 10);\n\tmin-height: calc(0);\n\tmin-height: calc(e - exp(1));\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/#exponential-functions\n[discord]: https://discord.gg/bUadyRwkJS\n[npm-url]: https://www.npmjs.com/package/@csstools/postcss-exponential-functions\n\n[PostCSS]: https://github.com/postcss/postcss\n[PostCSS Exponential Functions]: https://github.com/csstools/postcss-plugins/tree/main/plugins/postcss-exponential-functions\n[CSS Values 4 Specification]: https://www.w3.org/TR/css-values-4/#exponent-funcs\n","publish_time":1790956576855,"_cnpm_publish_time":1790956576855,"dist-tags":{"latest":"3.0.10"}}