
Security News
GitHub Actions Supply Chain Attack Puts Thousands of Projects at Risk
A compromised GitHub Action exposed secrets in CI/CD logs, putting thousands of projects at risk and forcing developers to urgently secure their workflows.
A node port of beautify-html.js by Nochum Sossonko which is based on jsbeautifier by Einar Lielmanis
npm install html
echo "<h2><strong><a href="http://awesome.com">AwesomeCom</a></strong><span>is awesome</span></h2>" | html
returns:
<h2>
<strong>
<a href=http://awesome.com>AwesomeCom</a>
</strong>
<span>
is awesome
</span>
</h2>
html foo.html
will write the prettified version to stdout
.
html *.html
will update in place all matching html files with their prettified versions.
I find myself constantly using the 'Copy as HTML' feature of the Chrome Inspector:
The downside is that that usually the HTML that gets copied is pretty ugly:
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:
grab the newest beautify-html.js
from js-beautifier and drop it into lib/
as html.js
. then add the following code to the bottom of html.js
:
module.exports = { prettyPrint: style_html }
BSD LICENSE
FAQs
HTML pretty printer CLI utility (based on jsbeautifier)
The npm package html receives a total of 159,916 weekly downloads. As such, html popularity was classified as popular.
We found that html demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
A compromised GitHub Action exposed secrets in CI/CD logs, putting thousands of projects at risk and forcing developers to urgently secure their workflows.
Research
Security News
A malicious Maven package typosquatting a popular library is secretly stealing OAuth credentials on the 15th of each month, putting Java developers at risk.
Security News
Socket and Seal Security collaborate to fix a critical npm overrides bug, resolving a three-year security issue in the JavaScript ecosystem's most popular package manager.