Comparing version 0.0.1 to 0.0.5
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
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Environment variable access
Supply chain riskPackage accesses environment variables, which may be a sign of credential stuffing or data theft.
Found 1 instance in 1 package
No repository
Supply chain riskPackage does not have a linked source code repository. Without this field, a package will have no reference to the location of the source code use to generate the package.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
No repository
Supply chain riskPackage does not have a linked source code repository. Without this field, a package will have no reference to the location of the source code use to generate the package.
Found 1 instance in 1 package
No tests
QualityPackage does not have any tests. This is a strong signal of a poorly maintained or low quality package.
Found 1 instance in 1 package
21858
12
171
2
21
2
3