Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

minimize

Package Overview
Dependencies
Maintainers
1
Versions
65
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

minimize - npm Package Compare versions

Comparing version 0.0.1 to 0.0.5

index.tmp

21

index.js

@@ -1,16 +0,7 @@

var jsdom = require('jsdom')
, parser = require('htmlparser')
, sys = require('sys')
, fs = require('fs');
var fs = require('fs')
, content = fs.readFileSync('index.tmp', 'utf-8')
, minimize = require('./lib/minimize');
var content = fs.readFileSync('index.html', 'utf-8');
var handler = new parser.DefaultHandler(function (error, dom) {
if (error) return;
console.log(dom[1].raw)
}, { ignoreWhitespace: true });
var htmlparser = new parser.Parser(handler);
htmlparser.parseComplete(content);
//sys.puts(sys.inspect(handler.dom, false, null));
minimize(content, function (data) {
console.log(data);
});
{
"name": "minimize",
"version": "0.0.1",
"version": "0.0.5",
"description": "Minimize HTML",
"main": "./lib/minimize",
"scripts": {
"test": ""
"test": "make test"
},

@@ -12,3 +12,7 @@ "dependencies": {

},
"repository": "",
"devDependencies": {
"mocha": "1.8.1",
"chai": "1.5.0"
},
"repository": "git@github.com:Moveo/minimize.git",
"keywords": [

@@ -15,0 +19,0 @@ "minify",

Sorry, the diff of this file is not supported yet

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