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.
clean-css-promise
Advanced tools
Readme
clean-css with the default Promise interface and some improvements
const CleanCssPromise = require('clean-css-promise');
(async () => {
const {styles} = await new CleanCssPromise().minify(`
p {
color: #ff0000;
}
b {
/* nothing */
}
`); //=> 'p{color:red}'
})();
npm install clean-css-promise
const CleanCssPromise = require('clean-css-promise');
options: Object
(clean-css constructor options)
Almost the same the original clean-css
, except for:
returnPromise
option is enabled by default, and cannot be disabled.Error
instead of an Array
.const CleanCssPromise = require('clean-css-promise');
new CleanCssPromise({})
.minify('@import url(/foo);}')
.catch(err => {
err.message;
/*=> `2 errors found while optimizing CSS with clean-css:
1. Ignoring local @import of "/foo" as resource is missing.
2. Invalid character(s) '?' at 1:18. Ignoring.
clean-css dangerously ignores these errors but clean-css-promise doesn't, because it's much more reasonable to update the CSS to fix all problems than to pretend that you didn't see the errors.` */
});
ISC License © 2017 - 2019 Watanabe Shinnosuke
FAQs
clean-css with the default Promise interface and some improvements
The npm package clean-css-promise receives a total of 85,618 weekly downloads. As such, clean-css-promise popularity was classified as popular.
We found that clean-css-promise 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.