{"name":"@csstools/postcss-exponential-functions","description":"Use pow(), sqrt(), hypot(), log(), exp() exponential functions in CSS","version":"2.0.4","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":">=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/css-calc":"^2.0.4","@csstools/css-parser-algorithms":"^3.0.4","@csstools/css-tokenizer":"^3.0.3"},"peerDependencies":{"postcss":"^8.4"},"scripts":{},"homepage":"https://github.com/csstools/postcss-plugins/tree/main/plugins/postcss-exponential-functions#readme","repository":{"type":"git","url":"git+https://github.com/csstools/postcss-plugins.git","directory":"plugins/postcss-exponential-functions"},"bugs":{"url":"https://github.com/csstools/postcss-plugins/issues"},"keywords":["exp","exponential","hypot","log","postcss-plugin","pow","sqrt"],"_id":"@csstools/postcss-exponential-functions@2.0.4","gitHead":"631b4305ce56cd62f3cfa9000a050e2a9c6dd946","types":"./dist/index.d.ts","_nodeVersion":"22.1.0","_npmVersion":"10.7.0","dist":{"integrity":"sha512-xmzFCGTkkLDs7q9vVaRGlnu8s51lRRJzHsaJ/nXmkQuyg0q7gh7rTbJ0bY5sSVet+KB7MTIxRXRUCl2tm7RODA==","shasum":"92bf51b0cbfc109e6958e91cf8af40fef9311731","tarball":"http://registry-npm.ywwl.com/@csstools/postcss-exponential-functions/download/@csstools/postcss-exponential-functions-2.0.4.tgz","fileCount":7,"unpackedSize":6646,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIF2l6T7YhwMwmsXdqQL7i/PBxfleo7JVpGE7IH/d2hCCAiEAqvD/SJ8gmBpqJidKJ/e3AkK0vy55G0T9TS+A6b26qQ0="}],"size":2731,"noattachment":false,"key":"/@csstools/postcss-exponential-functions/-/@csstools/postcss-exponential-functions-2.0.4.tgz"},"_npmUser":{"name":"romainmenke","email":"romainmenke@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/postcss-exponential-functions_2.0.4_1730497779608_0.9881720387573751"},"_hasShrinkwrap":false,"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```pcss\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: 8px;\n\tline-height: 1.0954451150103;\n\tpadding: 5px;\n\torder: 1;\n\tmin-height: 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```pcss\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: 8px;\n\ttop: calc(1px * pow(2, 3));\n\tline-height: 1.0954451150103;\n\tline-height: sqrt(1.2);\n\tpadding: 5px;\n\tpadding: hypot(3px, 4px);\n\torder: 1;\n\torder: log(10, 10);\n\tmin-height: 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":1730497779789,"maintainers":[{"name":"romainmenke","email":"romainmenke@gmail.com"},{"name":"alaguna","email":"sombragriselros@gmail.com"},{"name":"jonathantneal","email":"jonathantneal@hotmail.com"}],"_cnpm_publish_time":1730497779789,"dist-tags":{"latest":"3.0.10"}}