Comparing version 0.0.1 to 0.0.2
#!/usr/bin/env node | ||
var sys = require("sys"), | ||
html = require("../lib/html"); | ||
var html = require("../lib/html"); | ||
@@ -6,0 +5,0 @@ var args = process.argv.slice(0); |
{ "name": "html" | ||
, "version": "0.0.1" | ||
, "version": "0.0.2" | ||
, "engines": [ "node >=0.4.0" ] | ||
@@ -4,0 +4,0 @@ , "description": "HTML pretty printer." |
@@ -29,2 +29,20 @@ # commonjs html prettyprinter | ||
</h2> | ||
```` | ||
```` | ||
## Advanced usage | ||
I find myself constantly using the 'Copy as HTML' feature of the Chrome Inspector: | ||
![Copy as HTML](https://github.com/maxogden/commonjs-html-prettyprinter/raw/master/img/copyashtml.png) | ||
The downside is that that usually the HTML that gets copied is pretty ugly: | ||
![Before pretty printing](https://github.com/maxogden/commonjs-html-prettyprinter/raw/master/img/before.png) | ||
On 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: | ||
`pbpaste | html | pbcopy` | ||
Now when you paste your clipboard into an editor you will get nice, pretty printed HTML: | ||
![After pretty printing](https://github.com/maxogden/commonjs-html-prettyprinter/raw/master/img/after.png) |
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
Non-existent author
Supply chain riskThe package was published by an npm account that no longer exists.
Found 1 instance in 1 package
708631
7
48
0
423
1