Security News
tea.xyz Spam Plagues npm and RubyGems Package Registries
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
postcss-automath-latest
Advanced tools
Changelog
1.1.2
Readme
PostCSS plugin for evaluating math expressions in your CSS sources.
This plug-in uses the LESS parser internally, in an (intentionally) very limited way- just to parse mathematical expressions. As such, all unit handling mechanics are the same as in LESS.
If you want full LESS parsing functionality in your project, see postcss-less-engine.
.foo {
font-size: 2 * 8px;
margin: 4px + 2 * 3px;
}
.foo {
font-size: 16px;
margin: 10px;
}
postcss([ require('postcss-automath') ])
For best results, add the plugin after any variable parsing, mixin processing or
function handling plugins. Since postcss-automath
works on the final numeric
values of your CSS you need to process all variables, mixins and other dynamic
data beforehand.
See PostCSS docs for examples for your environment.
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.
postcss-math
& postcss-mathjs
?Those plugins want you to add non-standard function wrappers (the resolve()
function) around each expression you want evaluated. This module allows you
to write normal math expressions you'd be used to from using SASS, SCSS or LESS.
Since the variable handling is deferred to another plugin, you are free to use this module with SCSS, LESS, W3C or even your own custom syntax.
FAQs
Automatically evaluate mathematical expressions in your CSS source files, like in SASS or LESS. No special function calls needed as with `postcss-mathjs`.
The npm package postcss-automath-latest receives a total of 0 weekly downloads. As such, postcss-automath-latest popularity was classified as not popular.
We found that postcss-automath-latest 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
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
Security News
As cyber threats become more autonomous, AI-powered defenses are crucial for businesses to stay ahead of attackers who can exploit software vulnerabilities at scale.
Security News
UnitedHealth Group disclosed that the ransomware attack on Change Healthcare compromised protected health information for millions in the U.S., with estimated costs to the company expected to reach $1 billion.