{"_id":"html","_rev":"336316","name":"html","description":"HTML pretty printer CLI utility (based on jsbeautifier)","dist-tags":{"latest":"1.0.0"},"maintainers":[{"name":"maxogden","email":""}],"time":{"modified":"2021-06-20T02:20:28.000Z","created":"2011-09-10T22:11:19.877Z","1.0.0":"2016-08-09T20:42:30.203Z","0.0.10":"2015-04-13T06:05:52.395Z","0.0.9":"2015-03-17T21:34:54.437Z","0.0.7":"2012-11-27T00:09:30.925Z","0.0.6":"2012-10-08T15:12:19.328Z","0.0.5":"2012-10-08T15:03:29.220Z","0.0.4":"2012-10-08T14:48:18.788Z","0.0.3":"2012-09-04T04:45:40.979Z","0.0.2":"2012-07-12T21:56:01.881Z","0.0.1":"2011-09-10T22:11:19.877Z"},"users":{"hzapata":true,"itonyyo":true,"inca":true,"zeke":true,"ash":true,"cable023":true,"wangfeia":true,"olonam":true,"luchogodi77":true,"kakaman":true,"hacksalot":true},"author":{"name":"Max Ogden","email":"max@maxogden.com","url":"http://maxogden.com"},"repository":{"type":"git","url":"git+https://github.com/maxogden/commonjs-html-prettyprinter.git"},"versions":{"1.0.0":{"name":"html","version":"1.0.0","description":"HTML pretty printer CLI utility (based on jsbeautifier)","author":{"name":"Max Ogden","email":"max@maxogden.com","url":"http://maxogden.com"},"contributors":[{"name":"Nochum Sossonko","email":"nsossonko@hotmail.com"},{"name":"Einar Lielmanis","email":"elfz@laacz.lv"}],"keywords":["html","tabifier","beautifier","prettyprinter","prettifier","pretty","command","shell"],"repository":{"type":"git","url":"git+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"},"devDependencies":{},"scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"license":"BSD","gitHead":"0717eb216ebcc67399ca3c0406e5c03a77f7e761","_id":"html@1.0.0","_shasum":"a544fa9ea5492bfb3a2cca8210a10be7b5af1f61","_from":".","_npmVersion":"2.14.15","_nodeVersion":"4.2.3","_npmUser":{"name":"maxogden","email":"max@maxogden.com"},"dist":{"shasum":"a544fa9ea5492bfb3a2cca8210a10be7b5af1f61","size":684065,"noattachment":false,"key":"/html/-/html-1.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/html/download/html-1.0.0.tgz"},"maintainers":[{"name":"maxogden","email":""}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/html-1.0.0.tgz_1470775349947_0.25835029617883265"},"directories":{},"publish_time":1470775350203,"_cnpm_publish_time":1470775350203,"_hasShrinkwrap":false},"0.0.10":{"name":"html","version":"0.0.10","description":"HTML pretty printer CLI utility (based on jsbeautifier)","author":{"name":"Max Ogden","email":"max@maxogden.com","url":"http://maxogden.com"},"contributors":[{"name":"Nochum Sossonko","email":"nsossonko@hotmail.com"},{"name":"Einar Lielmanis","email":"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"},"devDependencies":{},"scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"license":"BSD","gitHead":"689fb2822513dff8fc971f0d54f01dc1b5844e2f","_id":"html@0.0.10","_shasum":"6fdc3ef8668c09a3a198ee3a5aa9e9f2878b95de","_from":".","_npmVersion":"2.7.0","_nodeVersion":"1.5.1","_npmUser":{"name":"maxogden","email":"max@maxogden.com"},"maintainers":[{"name":"maxogden","email":""}],"dist":{"shasum":"6fdc3ef8668c09a3a198ee3a5aa9e9f2878b95de","size":684074,"noattachment":false,"key":"/html/-/html-0.0.10.tgz","tarball":"http://registry.cnpm.dingdandao.com/html/download/html-0.0.10.tgz"},"directories":{},"publish_time":1428905152395,"_cnpm_publish_time":1428905152395,"_hasShrinkwrap":false},"0.0.9":{"name":"html","version":"0.0.9","description":"HTML pretty printer CLI utility (based on jsbeautifier)","author":{"name":"Max Ogden","email":"max@maxogden.com","url":"http://maxogden.com"},"contributors":[{"name":"Nochum Sossonko","email":"nsossonko@hotmail.com"},{"name":"Einar Lielmanis","email":"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","gitHead":"f5f3ad6c83a60be7a416ae9e121fb3516120e6e1","_id":"html@0.0.9","_shasum":"06ae2afe75cb815d80858636ad0d43cc83347ca0","_from":".","_npmVersion":"2.7.0","_nodeVersion":"1.5.1","_npmUser":{"name":"maxogden","email":"max@maxogden.com"},"maintainers":[{"name":"maxogden","email":""}],"dist":{"shasum":"06ae2afe75cb815d80858636ad0d43cc83347ca0","size":684083,"noattachment":false,"key":"/html/-/html-0.0.9.tgz","tarball":"http://registry.cnpm.dingdandao.com/html/download/html-0.0.9.tgz"},"directories":{},"publish_time":1426628094437,"_cnpm_publish_time":1426628094437,"_hasShrinkwrap":false},"0.0.7":{"name":"html","version":"0.0.7","engines":["node >=0.4.0"],"description":"HTML pretty printer.","author":{"name":"Max Ogden","email":"max@maxogden.com","url":"http://maxogden.com"},"contributors":[{"name":"Nochum Sossonko","email":"nsossonko@hotmail.com"},{"name":"Einar Lielmanis","email":"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","_id":"html@0.0.7","dist":{"shasum":"572980bb55a2ff3fe92fb394723f04f9d48d3773","size":683393,"noattachment":false,"key":"/html/-/html-0.0.7.tgz","tarball":"http://registry.cnpm.dingdandao.com/html/download/html-0.0.7.tgz"},"_npmVersion":"1.1.62","_npmUser":{"name":"maxogden","email":"max@maxogden.com"},"maintainers":[{"name":"maxogden","email":""}],"directories":{},"publish_time":1353974970925,"_cnpm_publish_time":1353974970925,"_hasShrinkwrap":false},"0.0.6":{"name":"html","version":"0.0.6","engines":["node >=0.4.0"],"description":"HTML pretty printer.","author":{"name":"Max Ogden","email":"max@maxogden.com","url":"http://maxogden.com"},"contributors":[{"name":"Nochum Sossonko","email":"nsossonko@hotmail.com"},{"name":"Einar Lielmanis","email":"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"},"scripts":{"build":"./node_modules/.bin/rig src/html.js > lib/html.js"},"main":"lib/html.js","_id":"html@0.0.6","dist":{"shasum":"b14e3dfc70b93e0b53bb853a1dcd6bf8193dc297","size":692275,"noattachment":false,"key":"/html/-/html-0.0.6.tgz","tarball":"http://registry.cnpm.dingdandao.com/html/download/html-0.0.6.tgz"},"_npmVersion":"1.1.62","_npmUser":{"name":"maxogden","email":"max@maxogden.com"},"maintainers":[{"name":"maxogden","email":""}],"directories":{},"publish_time":1349709139328,"_cnpm_publish_time":1349709139328,"_hasShrinkwrap":false},"0.0.5":{"name":"html","version":"0.0.5","engines":["node >=0.4.0"],"description":"HTML pretty printer.","author":{"name":"Max Ogden","email":"max@maxogden.com","url":"http://maxogden.com"},"contributors":[{"name":"Nochum Sossonko","email":"nsossonko@hotmail.com"},{"name":"Einar Lielmanis","email":"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"},"dependencies":{"glob":"3.1.13"},"scripts":{"build":"./node_modules/.bin/rig src/html.js > lib/html.js"},"main":"lib/html.js","_id":"html@0.0.5","dist":{"shasum":"b5e4fb23b212033cfe448169ad927f4eea6fd30c","size":692364,"noattachment":false,"key":"/html/-/html-0.0.5.tgz","tarball":"http://registry.cnpm.dingdandao.com/html/download/html-0.0.5.tgz"},"_npmVersion":"1.1.62","_npmUser":{"name":"maxogden","email":"max@maxogden.com"},"maintainers":[{"name":"maxogden","email":""}],"directories":{},"publish_time":1349708609220,"_cnpm_publish_time":1349708609220,"_hasShrinkwrap":false},"0.0.4":{"name":"html","version":"0.0.4","engines":["node >=0.4.0"],"description":"HTML pretty printer.","author":{"name":"Max Ogden","email":"max@maxogden.com","url":"http://maxogden.com"},"contributors":[{"name":"Nochum Sossonko","email":"nsossonko@hotmail.com"},{"name":"Einar Lielmanis","email":"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"},"devDependencies":{"rigger":"0.3.x"},"scripts":{"build":"./node_modules/.bin/rig src/html.js > lib/html.js"},"main":"lib/html.js","_id":"html@0.0.4","dist":{"shasum":"26377a60549937c1942fdfd0f542cb6774f2bb6f","size":692034,"noattachment":false,"key":"/html/-/html-0.0.4.tgz","tarball":"http://registry.cnpm.dingdandao.com/html/download/html-0.0.4.tgz"},"_npmVersion":"1.1.62","_npmUser":{"name":"maxogden","email":"max@maxogden.com"},"maintainers":[{"name":"maxogden","email":""}],"directories":{},"publish_time":1349707698788,"_cnpm_publish_time":1349707698788,"_hasShrinkwrap":false},"0.0.3":{"name":"html","version":"0.0.3","engines":["node >=0.4.0"],"description":"HTML pretty printer.","author":{"name":"Max Ogden","email":"max@maxogden.com","url":"http://maxogden.com"},"contributors":[{"name":"Nochum Sossonko","email":"nsossonko@hotmail.com"},{"name":"Einar Lielmanis","email":"elfz@laacz.lv"}],"keywords":["html","tabifier","beautifier","prettyprinter","prettifier","pretty","command","shell"],"repository":{"type":"git","url":"git://github.com/maxogden/commonjs-html-prettyprinter.git"},"bin":{"html":"./bin/html.js"},"devDependencies":{"rigger":"0.3.x"},"scripts":{"build":"./node_modules/.bin/rig src/html.js > lib/html.js"},"main":"lib/html.js","_npmUser":{"name":"maxogden","email":"max@maxogden.com"},"_id":"html@0.0.3","dependencies":{},"optionalDependencies":{},"_engineSupported":true,"_npmVersion":"1.1.21","_nodeVersion":"v0.8.0","_defaultsLoaded":true,"dist":{"shasum":"ab020f819f6ba3b969f4d221370f2b67ae84bf23","size":692020,"noattachment":false,"key":"/html/-/html-0.0.3.tgz","tarball":"http://registry.cnpm.dingdandao.com/html/download/html-0.0.3.tgz"},"maintainers":[{"name":"maxogden","email":""}],"directories":{},"publish_time":1346733940979,"_cnpm_publish_time":1346733940979,"_hasShrinkwrap":false},"0.0.2":{"name":"html","version":"0.0.2","engines":["node >=0.4.0"],"description":"HTML pretty printer.","author":{"name":"Max Ogden","email":"max@maxogden.com","url":"http://maxogden.com"},"contributors":[{"name":"Nochum Sossonko","email":"nsossonko@hotmail.com"},{"name":"Einar Lielmanis","email":"elfz@laacz.lv"}],"keywords":["html","tabifier","beautifier","prettyprinter","prettifier","pretty","command","shell"],"repository":{"type":"git","url":"git://github.com/maxogden/commonjs-html-prettyprinter.git"},"bin":{"html":"./bin/html.js"},"_npmUser":{"name":"maxogden","email":"max@maxogden.com"},"_id":"html@0.0.2","dependencies":{},"devDependencies":{},"optionalDependencies":{},"_engineSupported":true,"_npmVersion":"1.1.21","_nodeVersion":"v0.8.0","_defaultsLoaded":true,"dist":{"shasum":"cf38ff982e3c539f496e6fc620529ec4b112c3e9","size":681847,"noattachment":false,"key":"/html/-/html-0.0.2.tgz","tarball":"http://registry.cnpm.dingdandao.com/html/download/html-0.0.2.tgz"},"maintainers":[{"name":"maxogden","email":""}],"directories":{},"publish_time":1342130161881,"_cnpm_publish_time":1342130161881,"_hasShrinkwrap":false},"0.0.1":{"name":"html","version":"0.0.1","engines":["node >=0.4.0"],"description":"HTML pretty printer.","author":{"name":"Max Ogden","email":"max@maxogden.com","url":"http://maxogden.com"},"contributors":[{"name":"Nochum Sossonko","email":"nsossonko@hotmail.com"},{"name":"Einar Lielmanis","email":"elfz@laacz.lv"}],"keywords":["html","tabifier","beautifier","prettyprinter","prettifier","pretty","command","shell"],"repository":{"type":"git","url":"git://github.com/maxogden/commonjs-html-prettyprinter.git"},"bin":{"html":"./bin/html.js"},"_npmJsonOpts":{"file":"/Users/maxogden/.npm/html/0.0.1/package/package.json","wscript":false,"contributors":false,"serverjs":false},"_id":"html@0.0.1","dependencies":{},"devDependencies":{},"_engineSupported":true,"_npmVersion":"1.0.18","_nodeVersion":"v0.4.8","_defaultsLoaded":true,"dist":{"shasum":"53f8ca6d5052a93c8b038fc7902a2aee179c92f6","size":5115,"noattachment":false,"key":"/html/-/html-0.0.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/html/download/html-0.0.1.tgz"},"scripts":{},"maintainers":[{"name":"maxogden","email":""}],"directories":{},"publish_time":1315692679877,"_cnpm_publish_time":1315692679877,"_hasShrinkwrap":false}},"readme":"# html prettyprinter\n\nA node port of beautify-html.js by Nochum Sossonko which is based on jsbeautifier by Einar Lielmanis\n\n## Installation\n\n### from npm (node package manager)\n``` bash\n  npm install html\n```\n\n## Usage (command line)\n\n```\n  echo \"<h2><strong><a href=\"http://awesome.com\">AwesomeCom</a></strong><span>is awesome</span></h2>\" | html\n```\n\nreturns:\n  \n``` html  \n  <h2>\n      <strong>\n          <a href=http://awesome.com>AwesomeCom</a>\n      </strong>\n      <span>\n          is awesome\n      </span>\n  </h2>\n````\n\n`html foo.html` will write the prettified version to `stdout`.\n\n`html *.html` will *update in place* all matching html files with their prettified versions.\n\n## Advanced usage\n\nI find myself constantly using the 'Copy as HTML' feature of the Chrome Inspector:\n\n![Copy as HTML](https://github.com/maxogden/commonjs-html-prettyprinter/raw/master/img/copyashtml.png)\n\nThe downside is that that usually the HTML that gets copied is pretty ugly:\n\n![Before pretty printing](https://github.com/maxogden/commonjs-html-prettyprinter/raw/master/img/before.png)\n\nOn OS X you can use `pbpaste` and `pbcopy` to stream your clipboard in and out of unix pipes. With the ugly HTML still in your clipboard run this command:\n\n`pbpaste | html | pbcopy`\n\nNow when you paste your clipboard into an editor you will get nice, pretty printed HTML:\n\n![After pretty printing](https://github.com/maxogden/commonjs-html-prettyprinter/raw/master/img/after.png)\n\n## Upgrading\n\ngrab the newest `beautify-html.js` from [js-beautifier](https://github.com/einars/js-beautify) and drop it into `lib/` as `html.js`. then add the following code to the bottom of `html.js`:\n\n```javascript\n  module.exports = { prettyPrint: style_html }\n```\n\nBSD LICENSE","_attachments":{},"homepage":"https://github.com/maxogden/commonjs-html-prettyprinter","bugs":{"url":"https://github.com/maxogden/commonjs-html-prettyprinter/issues"},"license":"BSD"}