Socket
Socket
Sign inDemoInstall

html-minifier

Package Overview
Dependencies
Maintainers
2
Versions
80
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

html-minifier - npm Package Compare versions

Comparing version 3.4.0 to 3.4.1

6

package.json
{
"name": "html-minifier",
"description": "Highly configurable, well-tested, JavaScript-based HTML minifier.",
"version": "3.4.0",
"version": "3.4.1",
"keywords": [

@@ -69,3 +69,3 @@ "cli",

"grunt-browserify": "5.0.x",
"grunt-contrib-uglify": "2.1.x",
"grunt-contrib-uglify": "2.2.x",
"gruntify-eslint": "3.1.x",

@@ -80,3 +80,3 @@ "phantomjs-prebuilt": "2.1.x",

"lzma": "2.3.x",
"minimize": "2.0.x",
"minimize": "2.1.x",
"progress": "1.1.x"

@@ -83,0 +83,0 @@ },

@@ -25,15 +25,15 @@ # HTMLMinifier

| --------------------------------------------------------------------------- |:--------------------:| ------------:| --------:| ----------:| ------------------:|
| [Google](https://www.google.com/) | 44 | **42** | 45 | 46 | 45 |
| [HTMLMinifier](https://github.com/kangax/html-minifier) | 123 | **96** | 104 | 108 | 103 |
| [CNN](http://www.cnn.com/) | 131 | **120** | 128 | 129 | 124 |
| [Amazon](http://www.amazon.co.uk/) | 193 | **161** | 185 | 188 | n/a |
| [BBC](http://www.bbc.co.uk/) | 204 | **169** | 198 | 203 | 192 |
| [Stack Overflow](http://stackoverflow.com/) | 240 | **188** | 198 | 206 | 195 |
| [New York Times](http://www.nytimes.com/) | 261 | **182** | 207 | 204 | 191 |
| [Google](https://www.google.com/) | 44 | **42** | 44 | 46 | 45 |
| [HTMLMinifier](https://github.com/kangax/html-minifier) | 123 | **96** | 104 | 108 | 104 |
| [CNN](http://www.cnn.com/) | 135 | **125** | 133 | 134 | 128 |
| [Amazon](http://www.amazon.co.uk/) | 193 | **161** | 184 | 187 | n/a |
| [New York Times](http://www.nytimes.com/) | 205 | **137** | 154 | 155 | 145 |
| [BBC](http://www.bbc.co.uk/) | 206 | **171** | 199 | 204 | 194 |
| [Stack Overflow](http://stackoverflow.com/) | 223 | **173** | 182 | 190 | 179 |
| [Bootstrap CSS](http://getbootstrap.com/css/) | 272 | **260** | 269 | 229 | 269 |
| [Wikipedia](https://en.wikipedia.org/wiki/President_of_the_United_States) | 546 | **499** | 527 | 545 | 526 |
| [NBC](http://www.nbc.com/) | 566 | **543** | 564 | 566 | 549 |
| [Wikipedia](https://en.wikipedia.org/wiki/President_of_the_United_States) | 545 | **498** | 526 | 544 | 525 |
| [NBC](http://www.nbc.com/) | 560 | **538** | 558 | 560 | 543 |
| [Eloquent Javascript](http://eloquentjavascript.net/1st_edition/print.html) | 870 | **815** | 840 | 864 | n/a |
| [ES6 table](http://kangax.github.io/compat-table/es6/) | 4197 | **3531** | 3959 | n/a | n/a |
| [ES6 draft](https://tc39.github.io/ecma262/) | 5507 | **4914** | 5060 | n/a | n/a |
| [ES6 table](http://kangax.github.io/compat-table/es6/) | 4287 | **3607** | 4044 | n/a | n/a |
| [ES6 draft](https://tc39.github.io/ecma262/) | 5506 | **4914** | 5060 | n/a | n/a |

@@ -40,0 +40,0 @@ ## Options Quick Reference

@@ -618,5 +618,2 @@ 'use strict';

var fnPrefix = '!function(){';
var fnSuffix = '}();';
function processOptions(options) {

@@ -685,2 +682,3 @@ ['html5', 'includeAutoGeneratedTags'].forEach(function(key) {

(minifyJS.output || (minifyJS.output = {})).inline_script = true;
(minifyJS.parse || (minifyJS.parse = {})).bare_returns = false;
options.minifyJS = function(text, inline) {

@@ -690,9 +688,4 @@ var start = text.match(/^\s*<!--.*/);

try {
if (inline) {
code = fnPrefix + code + fnSuffix;
}
minifyJS.parse.bare_returns = inline;
code = UglifyJS.minify(code, minifyJS).code;
if (inline) {
code = code.slice(fnPrefix.length, -fnSuffix.length);
}
if (/;$/.test(code)) {

@@ -699,0 +692,0 @@ code = code.slice(0, -1);

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc