![Introducing Enhanced Alert Actions and Triage Functionality](https://cdn.sanity.io/images/cgdhsj6q/production/fe71306d515f85de6139b46745ea7180362324f0-2530x946.png?w=800&fit=max&auto=format)
Product
Introducing Enhanced Alert Actions and Triage Functionality
Socket now supports four distinct alert actions instead of the previous two, and alert triaging allows users to override the actions taken for all individual alerts.
minimize
Advanced tools
Readme
Minimize is a HTML minifier based on the node-htmlparser. This depedency will ensure output is solid and correct. Currently, HTML minifier is only usuable server side. Client side minification will be added in a future release.
Upcoming in release 2.0
To get the minified content make sure to provide a callback. Optional an options
object can be provided. All options are listed below and false
per default.
var minimize = require('minimize')
, options = {
empty: true // DO NOT remove empty attributes
, cdata: true // DO NOT strip CDATA from scripts
, comments: true // DO NOT remove comments
, spare: true // DO NOT remove redundant attributes
};
minimize(content, function (data) {
console.log(data);
}, options);
empty
cdata
comments
spare
Minimize is influenced by the HTML minifier of kangax. This module parses the DOM as string as opposes to an object. However, retaining flow is more diffucult if the DOM is parsed sequentially. Minimize is not client-side ready. Kangax minifier also provides some additional options like linting. Minimize will retain strictly to the business of minifying.
HTMLparser of Tautologistics is used to create an object representation of the DOM.
FAQs
Minimize HTML
The npm package minimize receives a total of 28,439 weekly downloads. As such, minimize popularity was classified as popular.
We found that minimize 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.
Product
Socket now supports four distinct alert actions instead of the previous two, and alert triaging allows users to override the actions taken for all individual alerts.
Security News
Polyfill.io has been serving malware for months via its CDN, after the project's open source maintainer sold the service to a company based in China.
Security News
OpenSSF is warning open source maintainers to stay vigilant against reputation farming on GitHub, where users artificially inflate their status by manipulating interactions on closed issues and PRs.