{"_id":"@bluecadet/postcss-do-math","name":"@bluecadet/postcss-do-math","dist-tags":{"latest":"0.0.1"},"versions":{"0.0.1":{"name":"@bluecadet/postcss-do-math","version":"0.0.1","description":"PostCSS plugin to do math with mathjs","main":"dist/index.js","exports":{".":"./dist/index.js"},"scripts":{"unit":"node --test index.test.js","test":"npm run unit && eslint .","dev":"tsc --watch --declarationMap --sourceMap","build":"tsc"},"author":{"name":"Bluecadet"},"license":"MIT","repository":{"type":"git","url":"git+https://github.com/bluecadet/postcss-do-math.git"},"engines":{"node":">=18.0.0"},"peerDependencies":{"postcss":"^8.4.27"},"devDependencies":{"@types/mathjs":"^9.4.1","@types/node":"^24.10.0","eslint":"^8.47.0","postcss":"^8.5.6","typescript":"^5.9.3"},"eslintConfig":{"parserOptions":{"ecmaVersion":2017},"env":{"node":true,"es6":true},"extends":["eslint:recommended"]},"dependencies":{"mathjs":"^15.1.0"},"_id":"@bluecadet/postcss-do-math@0.0.1","gitHead":"855e70539ee1d0a5e4cce57ea02338e9d998c049","types":"./dist/index.d.ts","bugs":{"url":"https://github.com/bluecadet/postcss-do-math/issues"},"homepage":"https://github.com/bluecadet/postcss-do-math#readme","_nodeVersion":"22.16.0","_npmVersion":"10.9.2","dist":{"integrity":"sha512-QQ/hGxvUTqhQeTIfS+Y7HkdSiw8uiqRjW7MUkCPI9/h8AAoQbNHR9MFo7nowSTuTqS+qTPDXPlgLXqouk6dMqQ==","shasum":"1c7f391f4b8d581a355081b975e64d5d4d2f478e","tarball":"https://registry.npmjs.org/@bluecadet/postcss-do-math/-/postcss-do-math-0.0.1.tgz","fileCount":9,"unpackedSize":22130,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEUCIE+rodwB4gYnCI2RUMOMOpqazNd17Z56dY6B/DxSehmIAiEAoMbGpidOKyf9+4wsqH1VGdEUGXDxJ/oyNWRmOo+1sYI="}]},"_npmUser":{"name":"baerkins","email":"shaun.baer@gmail.com"},"directories":{},"maintainers":[{"name":"baerkins","email":"shaun.baer@gmail.com"},{"name":"peteinge","email":"pete.inge@gmail.com"},{"name":"benjaminbojko","email":"b@bbojko.de"},{"name":"claytercek","email":"clay@tercek.me"},{"name":"bluecadetreleases","email":"releases@bluecadet.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/postcss-do-math_0.0.1_1762872393942_0.5238775047737689"},"_hasShrinkwrap":false}},"time":{"created":"2025-11-11T14:46:33.819Z","0.0.1":"2025-11-11T14:46:34.127Z","modified":"2025-11-11T14:46:34.547Z"},"maintainers":[{"name":"baerkins","email":"shaun.baer@gmail.com"},{"name":"peteinge","email":"pete.inge@gmail.com"},{"name":"benjaminbojko","email":"b@bbojko.de"},{"name":"claytercek","email":"clay@tercek.me"},{"name":"bluecadetreleases","email":"releases@bluecadet.com"}],"description":"PostCSS plugin to do math with mathjs","homepage":"https://github.com/bluecadet/postcss-do-math#readme","repository":{"type":"git","url":"git+https://github.com/bluecadet/postcss-do-math.git"},"author":{"name":"Bluecadet"},"bugs":{"url":"https://github.com/bluecadet/postcss-do-math/issues"},"license":"MIT","readme":"# do_math\n\n**WIP - TESTING ONLY**\n\n## In your postcss config:\n\n```js\n'postcss': {\n  basePixelSize: 16, // optional\n}\n```\n\n## In your CSS:\n\n```css\n.element {\n  width: do_math(100px / 2);          // -> width: 50px;\n  margin: 10px do_math(20 + 5) 0;     // -> margin: 10px 25 0;\n  padding: do_math(10 * 2)px;         // -> padding: 20px;\n  height: do_math(16rem * 1.5);       // -> height: 24rem;\n  font-size: do_math(2 ^ 3)px;        // -> font-size: 8px;\n  opacity: do_math(1 / 2);            // -> opacity: 0.5;\n  gap: do_math(10px + 5px);           // -> gap: 15px;\n\n  // Mixed px/em - converts em to px using basePixelSize\n  width: do_math(2em + 10px);         // -> width: 42px; (2 * 16 + 10)\n  height: do_math(3rem - 8px);        // -> height: 40px; (3 * 16 - 8)\n  padding: do_math(1.5em * 2 + 5px);  // -> padding: 53px; (1.5 * 16 * 2 + 5)\n}\n```","readmeFilename":"README.md","_rev":"1-a775512e8971d2e1763a7b6a76995a34"}