{"name":"@csstools/postcss-exponential-functions","version":"1.0.1","keywords":["exp","exponential","hypot","log","postcss-plugin","pow","sqrt"],"license":"MIT-0","_id":"@csstools/postcss-exponential-functions@1.0.1","maintainers":[{"name":"romainmenke","email":"romainmenke@gmail.com"},{"name":"alaguna","email":"sombragriselros@gmail.com"},{"name":"jonathantneal","email":"jonathantneal@hotmail.com"}],"contributors":[{"url":"https://antonio.laguna.es","name":"Antonio Laguna","email":"antonio@laguna.es"},{"name":"Romain Menke","email":"romainmenke@gmail.com"}],"homepage":"https://github.com/csstools/postcss-plugins/tree/main/plugins/postcss-exponential-functions#readme","bugs":{"url":"https://github.com/csstools/postcss-plugins/issues"},"dist":{"shasum":"0d938f58ba5ac5c362e09ad22b5768b04ee82650","tarball":"http://registry-npm.ywwl.com/@csstools/postcss-exponential-functions/download/@csstools/postcss-exponential-functions-1.0.1.tgz","fileCount":9,"integrity":"sha512-ZLK2iSK4DUxeypGce2PnQSdYugUqDTwxnhNiq1o6OyKMNYgYs4eKbvEhFG8JKr1sJWbeqBi5jRr0017l2EWVvg==","signatures":[{"sig":"MEUCIHDGAGiBWECY48uzPmS4uhCiZswvy54W6NdttMTuKcytAiEA1GVaV0k6SvbdtTdHGbTptyzIegNI7TcrP2rkPFPswC8=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":9050,"size":3362,"noattachment":false,"key":"/@csstools/postcss-exponential-functions/-/@csstools/postcss-exponential-functions-1.0.1.tgz"},"main":"dist/index.cjs","types":"dist/index.d.ts","volta":{"extends":"../../package.json"},"module":"dist/index.mjs","engines":{"node":"^14 || ^16 || >=18"},"exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.mjs","default":"./dist/index.mjs","require":"./dist/index.cjs"}},"funding":[{"url":"https://github.com/sponsors/csstools","type":"github"},{"url":"https://opencollective.com/csstools","type":"opencollective"}],"gitHead":"98b05cc8644942c68dda6bcf63ee6d9f1ce3884b","scripts":{"docs":"node ../../.github/bin/generate-docs/install.mjs && node ../../.github/bin/generate-docs/readme.mjs","lint":"node ../../.github/bin/format-package-json.mjs","test":"node .tape.mjs && node ./test/_import.mjs && node ./test/_require.cjs","build":"rollup -c ../../rollup/default.mjs","prepublishOnly":"npm run build && npm run test","test:rewrite-expects":"REWRITE_EXPECTS=true node .tape.mjs"},"_npmUser":{"name":"romainmenke","email":"romainmenke@gmail.com"},"csstools":{"cssdbId":"exponential-functions","specUrl":"https://www.w3.org/TR/css-values-4/#exponent-funcs","exportName":"postcssExponentialFunctions","humanReadableName":"PostCSS Exponential Functions"},"repository":{"url":"git+https://github.com/csstools/postcss-plugins.git","type":"git","directory":"plugins/postcss-exponential-functions"},"_npmVersion":"9.8.0","description":"Use pow(), sqrt(), hypot(), log(), exp() exponential functions in CSS","directories":{},"_nodeVersion":"20.5.0","dependencies":{"@csstools/css-calc":"^1.1.4","@csstools/css-tokenizer":"^2.2.1","@csstools/css-parser-algorithms":"^2.3.2"},"_hasShrinkwrap":false,"devDependencies":{"@csstools/postcss-tape":"*"},"peerDependencies":{"postcss":"^8.4"},"_npmOperationalInternal":{"tmp":"tmp/postcss-exponential-functions_1.0.1_1695584727194_0.685289091406778","host":"s3://npm-registry-packages"},"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[<img alt=\"npm version\" src=\"https://img.shields.io/npm/v/@csstools/postcss-exponential-functions.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/exponential-functions.svg\" height=\"20\">][css-url] [<img alt=\"CSS Standard Status\" src=\"https://cssdb.org/images/badges/exponential-functions.svg\" height=\"20\">][css-url] \n\n```bash\nnpm install @csstools/postcss-exponential-functions --save-dev\n```\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[PostCSS Exponential Functions] 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, 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":1695584727407,"_cnpm_publish_time":1695584727407,"dist-tags":{"latest":"3.0.10"}}