
Security News
Official Go SDK for MCP in Development, Stable Release Expected in August
The official Go SDK for the Model Context Protocol is in development, with a stable, production-ready release expected by August 2025.
clean-css-promise
Advanced tools
clean-css with the default Promise interface and some improvements
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 239,358 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
The official Go SDK for the Model Context Protocol is in development, with a stable, production-ready release expected by August 2025.
Security News
New research reveals that LLMs often fake understanding, passing benchmarks but failing to apply concepts or stay internally consistent.
Security News
Django has updated its security policies to reject AI-generated vulnerability reports that include fabricated or unverifiable content.