
Security News
Official Go SDK for MCP in Development, Stable Release Expected in August
The official Go SDK for the Model Context Protocol is in development, with a stable, production-ready release expected by August 2025.
html-format
Advanced tools
Format HTML strings by indenting, wrapping, and removing unnecessary whitespace while preserving newlines.
npm install html-format
import format from "html-format";
const html = `\
<body>
<main class="grid"> </main>
</body>
`;
// indent = 2 spaces (default), width = 80 characters (default)
format(html) ==
`\
<body>
<main class="grid"> </main>
</body>
`;
// indent = 4 spaces, width = 80 characters (default)
format(html, " ".repeat(4)) ==
`\
<body>
<main class="grid"> </main>
</body>
`;
// indent = 4 spaces, width = 20 characters
format(html, " ".repeat(4), 20) ==
`\
<body>
<main
class="grid">
</main>
</body>
`;
FAQs
Format HTML strings.
The npm package html-format receives a total of 5,832 weekly downloads. As such, html-format popularity was classified as popular.
We found that html-format 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
The official Go SDK for the Model Context Protocol is in development, with a stable, production-ready release expected by August 2025.
Security News
New research reveals that LLMs often fake understanding, passing benchmarks but failing to apply concepts or stay internally consistent.
Security News
Django has updated its security policies to reject AI-generated vulnerability reports that include fabricated or unverifiable content.