pretty-error is a Node.js library that renders JavaScript error messages in a cleaner, more readable, and visually styled format to make debugging easier. PrettyError turns error objects into something similar to an html document, and then uses RenderKid to render the document using simple html/css-like commands. This allows PrettyError to be themed using simple css-like declarations. There are a few methods to help you customize the contents of your error logs. You can customize which trace lines get logged and which won't.

Features

  • Cleans and highlights stack traces with color-coded sections
  • Filters out internal Node.js paths for clarity
  • Supports custom themes and style overrides
  • Preserves relevant code context and formatting
  • Offers configuration via API for toggling path verbosity
  • Regularly used in CLI tools for improved developer experience

Project Samples

Project Activity

See All Activity >

Categories

Libraries

License

MIT License

Follow Pretty-Error

Pretty-Error Web Site

Other Useful Business Software
Full-stack observability with actually useful AI | Grafana Cloud Icon
Full-stack observability with actually useful AI | Grafana Cloud

Our generous forever free tier includes the full platform, including the AI Assistant, for 3 users with 10k metrics, 50GB logs, and 50GB traces.

Built on open standards like Prometheus and OpenTelemetry, Grafana Cloud includes Kubernetes Monitoring, Application Observability, Incident Response, plus the AI-powered Grafana Assistant. Get started with our generous free tier today.
Create free account
Rate This Project
Login To Rate This Project

User Reviews

Be the first to post a review of Pretty-Error!

Additional Project Details

Programming Language

CoffeeScript

Related Categories

CoffeeScript Libraries

Registered

2025-08-22