Comparing version 0.0.7 to 0.0.9
#!/usr/bin/env node | ||
var sys = require("sys") | ||
var html = require("../lib/html") | ||
var fs = require('fs') | ||
var concat = require('concat-stream') | ||
var args = process.argv.slice(0); | ||
var args = process.argv.slice(0) | ||
// shift off node and script name | ||
@@ -17,13 +17,5 @@ args.shift() | ||
var stdin = process.openStdin() | ||
var data = "" | ||
stdin.setEncoding("utf8") | ||
stdin.on("data", function(chunk) { | ||
data += chunk | ||
}) | ||
stdin.on("end", function() { | ||
process.stdout.write(html.prettyPrint(data, {indent_size: 2})) | ||
}) | ||
stdin.pipe(concat(function concatted (buff) { | ||
process.stdout.write(html.prettyPrint(buff.toString(), {indent_size: 2})) | ||
})) | ||
} | ||
@@ -30,0 +22,0 @@ |
@@ -1,14 +0,42 @@ | ||
{ "name": "html" | ||
, "version": "0.0.7" | ||
, "engines": [ "node >=0.4.0" ] | ||
, "description": "HTML pretty printer." | ||
, "author": "Max Ogden <max@maxogden.com> (http://maxogden.com)" | ||
, "contributors": [ "Nochum Sossonko <nsossonko@hotmail.com>", "Einar Lielmanis <elfz@laacz.lv>" ] | ||
, "keywords" : [ "html", "tabifier", "beautifier", "prettyprinter", "prettifier", "pretty", "command", "shell" ] | ||
, "repository": | ||
{ "type" : "git" | ||
, "url" : "https://github.com/maxogden/commonjs-html-prettyprinter.git" | ||
} | ||
, "bin" : { "html" : "./bin/html.js" } | ||
, "main" : "lib/html.js" | ||
{ | ||
"name": "html", | ||
"version": "0.0.9", | ||
"description": "HTML pretty printer CLI utility (based on jsbeautifier)", | ||
"author": "Max Ogden <max@maxogden.com> (http://maxogden.com)", | ||
"contributors": [ | ||
"Nochum Sossonko <nsossonko@hotmail.com>", | ||
"Einar Lielmanis <elfz@laacz.lv>" | ||
], | ||
"keywords": [ | ||
"html", | ||
"tabifier", | ||
"beautifier", | ||
"prettyprinter", | ||
"prettifier", | ||
"pretty", | ||
"command", | ||
"shell" | ||
], | ||
"repository": { | ||
"type": "git", | ||
"url": "https://github.com/maxogden/commonjs-html-prettyprinter.git" | ||
}, | ||
"bin": { | ||
"html": "./bin/html.js" | ||
}, | ||
"main": "lib/html.js", | ||
"bugs": { | ||
"url": "https://github.com/maxogden/commonjs-html-prettyprinter/issues" | ||
}, | ||
"homepage": "https://github.com/maxogden/commonjs-html-prettyprinter", | ||
"dependencies": { | ||
"concat-stream": "^1.4.7", | ||
"glob": "^3.1.13", | ||
"rigger": "^0.3.19" | ||
}, | ||
"devDependencies": {}, | ||
"scripts": { | ||
"test": "echo \"Error: no test specified\" && exit 1" | ||
}, | ||
"license": "BSD" | ||
} |
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
Misc. License Issues
License(Experimental) A package's licensing information has fine-grained problems.
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
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
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
No bug tracker
MaintenancePackage does not have a linked bug tracker in package.json.
Found 1 instance in 1 package
No License Found
License(Experimental) License information could not be found.
Found 1 instance in 1 package
No website
QualityPackage does not have a website.
Found 1 instance in 1 package
714255
10
0
1
0
3
1
510
+ Addedconcat-stream@^1.4.7
+ Addedglob@^3.1.13
+ Addedrigger@^0.3.19
+ Addedajv@6.12.6(transitive)
+ Addedasn1@0.2.6(transitive)
+ Addedassert-plus@1.0.0(transitive)
+ Addedasync@0.1.22(transitive)
+ Addedasynckit@0.4.0(transitive)
+ Addedaws-sign2@0.7.0(transitive)
+ Addedaws4@1.13.2(transitive)
+ Addedbcrypt-pbkdf@1.0.2(transitive)
+ Addedbuffer-from@1.1.2(transitive)
+ Addedcaseless@0.12.0(transitive)
+ Addedcombined-stream@1.0.8(transitive)
+ Addedconcat-stream@1.6.2(transitive)
+ Addedcore-util-is@1.0.21.0.3(transitive)
+ Addeddashdash@1.14.1(transitive)
+ Addeddebug@4.3.7(transitive)
+ Addeddelayed-stream@1.0.0(transitive)
+ Addedecc-jsbn@0.1.2(transitive)
+ Addedextend@3.0.2(transitive)
+ Addedextsprintf@1.3.0(transitive)
+ Addedfast-deep-equal@3.1.3(transitive)
+ Addedfast-json-stable-stringify@2.1.0(transitive)
+ Addedforever-agent@0.6.1(transitive)
+ Addedform-data@2.3.3(transitive)
+ Addedgetit@0.2.1(transitive)
+ Addedgetpass@0.1.7(transitive)
+ Addedglob@3.2.11(transitive)
+ Addedhar-schema@2.0.0(transitive)
+ Addedhar-validator@5.1.5(transitive)
+ Addedhttp-signature@1.2.0(transitive)
+ Addedinherits@2.0.4(transitive)
+ Addedis-typedarray@1.0.0(transitive)
+ Addedisarray@1.0.0(transitive)
+ Addedisstream@0.1.2(transitive)
+ Addedjsbn@0.1.1(transitive)
+ Addedjson-schema@0.4.0(transitive)
+ Addedjson-schema-traverse@0.4.1(transitive)
+ Addedjson-stringify-safe@5.0.1(transitive)
+ Addedjsprim@1.4.2(transitive)
+ Addedlru-cache@2.7.3(transitive)
+ Addedmime-db@1.52.0(transitive)
+ Addedmime-types@2.1.35(transitive)
+ Addedminimatch@0.3.0(transitive)
+ Addedmkdirp@3.0.1(transitive)
+ Addedms@2.1.3(transitive)
+ Addedoauth-sign@0.9.0(transitive)
+ Addedperformance-now@2.1.0(transitive)
+ Addedprocess-nextick-args@2.0.1(transitive)
+ Addedpsl@1.10.0(transitive)
+ Addedpunycode@2.3.1(transitive)
+ Addedqs@6.5.3(transitive)
+ Addedread@0.1.1(transitive)
+ Addedreadable-stream@2.3.8(transitive)
+ Addedrequest@2.88.2(transitive)
+ Addedrigger@0.3.20(transitive)
+ Addedsafe-buffer@5.1.2(transitive)
+ Addedsafer-buffer@2.1.2(transitive)
+ Addedsigmund@1.0.1(transitive)
+ Addedsquirrel@0.1.1(transitive)
+ Addedsshpk@1.18.0(transitive)
+ Addedstring_decoder@1.1.1(transitive)
+ Addedtough-cookie@2.5.0(transitive)
+ Addedtunnel-agent@0.6.0(transitive)
+ Addedtweetnacl@0.14.5(transitive)
+ Addedtypedarray@0.0.6(transitive)
+ Addedunderscore@1.3.3(transitive)
+ Addeduri-js@4.4.1(transitive)
+ Addedutil-deprecate@1.0.2(transitive)
+ Addeduuid@3.4.0(transitive)
+ Addedverror@1.10.0(transitive)