
Security News
AI Agent Submits PR to Matplotlib, Publishes Angry Blog Post After Rejection
After Matplotlib rejected an AI-written PR, the agent fired back with a blog post, igniting debate over AI contributions and maintainer burden.
error-to-html
Advanced tools
A simple module for rendering an Error object as an HTML snippet.
const errorToHtml = require('error-to-html');
const error = new Error('this is an error!');
const html = errorToHtml(error);
/*
<dl class="error-object">
<dt class="error-term">message</dt>
<dd class="error-message">this is an error!</dd>
<dt class="error-term">stack</dt>
<dd class="error-stack"><pre>Error: this is an error!
at repl:1:13
at REPLServer.defaultEval (repl.js:252:27)
at bound (domain.js:287:14)
at REPLServer.runBound [as eval] (domain.js:300:12)
at REPLServer.<anonymous> (repl.js:417:12)
at emitOne (events.js:82:20)
at REPLServer.emit (events.js:169:7)
at REPLServer.Interface._onLine (readline.js:210:10)
at REPLServer.Interface._line (readline.js:549:8)
at REPLServer.Interface._ttyWrite (readline.js:826:14)</pre></dd>
</dl>
*/
const errorToHtml = require('error-to-html').errorToHTMLPromise;
const error = new Error('this is an error!');
errorToHtml(error)
.then(console.log)
.catch((e) => {
console.error('You did not supply an error object.');
console.error(e);
});
FAQs
Converts an Error object to an HTML snippet
The npm package error-to-html receives a total of 13 weekly downloads. As such, error-to-html popularity was classified as not popular.
We found that error-to-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
After Matplotlib rejected an AI-written PR, the agent fired back with a blog post, igniting debate over AI contributions and maintainer burden.

Security News
HashiCorp disclosed a high-severity RCE in next-mdx-remote affecting versions 4.3.0 to 5.x when compiling untrusted MDX on the server.

Security News
Security researchers report widespread abuse of OpenClaw skills to deliver info-stealing malware, exposing a new supply chain risk as agent ecosystems scale.