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

html

Package Overview
Dependencies
Maintainers
1
Versions
10
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

html - npm Package Compare versions

Comparing version 0.0.7 to 0.0.9

LICENSE

18

bin/html.js
#!/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"
}
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