Security News
Fluent Assertions Faces Backlash After Abandoning Open Source Licensing
Fluent Assertions is facing backlash after dropping the Apache license for a commercial model, leaving users blindsided and questioning contributor rights.
postcss-font-family
Advanced tools
Normalize font family declarations with PostCSS.
With npm do:
npm install postcss-font-family --save
This module will try to minimise the font-family
and font
shorthand
properties; it can unquote font families where necessary, detect & remove
duplicates, and cut short a declaration after it finds a keyword. For more
examples, see the tests.
h1 {
font-family: "Helvetica Neue", Arial, sans-serif, Helvetica;
}
h1 {
font-family: Helvetica Neue,Arial,sans-serif;
}
Type: boolean
Default: true
Pass false
to disable the module from removing font families after it
encounters a font keyword, for example sans-serif
.
Type: boolean
Default: true
Pass false
to disable the module from removing duplicated font families.
Type: boolean
Default: true
Pass false
to disable the module from removing quotes from font families.
Note that oftentimes, this is a safe optimisation & is done safely. For more
details, see Mathias Bynens' article.
See the PostCSS documentation for examples for your environment.
Pull requests are welcome. If you add functionality, then please add unit tests to cover it.
MIT © Ben Briggs
FAQs
Normalize font family declarations with PostCSS.
The npm package postcss-font-family receives a total of 5,033 weekly downloads. As such, postcss-font-family popularity was classified as popular.
We found that postcss-font-family demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 2 open source maintainers 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
Fluent Assertions is facing backlash after dropping the Apache license for a commercial model, leaving users blindsided and questioning contributor rights.
Research
Security News
Socket researchers uncover the risks of a malicious Python package targeting Discord developers.
Security News
The UK is proposing a bold ban on ransomware payments by public entities to disrupt cybercrime, protect critical services, and lead global cybersecurity efforts.