Security News
38% of CISOs Fear They’re Not Moving Fast Enough on AI
CISOs are racing to adopt AI for cybersecurity, but hurdles in budgets and governance may leave some falling behind in the fight against cyber threats.
postcss-math
Advanced tools
PostCSS plugin for making calculations with math.js.
This plug-in supports:
px
, em
, rem
, vh
, vmax
and other units10cm
not 10 cm
)strip(25px)
becomes 25
floor(12.6px)
becomes 12px
and ceil(12.6px)
becomes 13px
Contributions are very welcome!
.foo {
font-size: resolve(2 * 8px);
padding: resolve(strip(16cm) + (2px * 3));
margin: resolve(4px + resolve(2 * 3px));
}
.foo {
font-size: 16px;
padding: 22px;
margin: 10px;
}
postcss([ require('postcss-math') ])
See PostCSS docs for examples for your environment.
postcss-assets
?You can pass in a functionName
option to switch to something other than resolve
.
postcss-calc
?They're (deliberately) trying to work towards the calc(...) standard, so for instance it doesn't support things like exponentials at the moment. This wraps up math.js so you have a wider range of things you can do.
FAQs
PostCSS plugin for making calculations with math.js
The npm package postcss-math receives a total of 0 weekly downloads. As such, postcss-math popularity was classified as not popular.
We found that postcss-math demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
CISOs are racing to adopt AI for cybersecurity, but hurdles in budgets and governance may leave some falling behind in the fight against cyber threats.
Research
Security News
Socket researchers uncovered a backdoored typosquat of BoltDB in the Go ecosystem, exploiting Go Module Proxy caching to persist undetected for years.
Security News
Company News
Socket is joining TC54 to help develop standards for software supply chain security, contributing to the evolution of SBOMs, CycloneDX, and Package URL specifications.