百科.dev
全部条目在线工具AI 编程趋势榜开源项目技术资讯提交条目
登录
< 返回工具列表
O

Ouch

> 编程语言
开源

NodeJS 错误 - 给酷孩子们

200 stars0 点赞3 次浏览
访问官网GitHub

工具介绍

NodeJS 错误 - 给酷孩子们

Ouch

NodeJS errors for cool kids

Ouch is a NodeJS implementation of PHP's Whoops library. It's not an exact port of Whoops, but implements similar functionality and uses same front end resources in some of its error handlers. It is an error handler base/framework for NodeJs. Out-of-the-box, it provides a pretty error interface that helps you debug your web projects, but at heart it's a simple yet powerful stacked error handling system.

Pretty page handler demo

Blue theme

Orange theme

Installation

The source is available for download from GitHub. Alternatively, you can install using Node Package Manager (npm):

javascript
npm install ouch

Usage examples

…

For more options, have a look at the example files in examples to get a feel for how things work. Also take a look at the API Documentation and the list of available handlers below.

Available Handlers

Ouch currently ships with the following built-in handlers, available in the require("ouch").handlers namespace:

  • PrettyPageHandler - Shows a pretty error page when something goes pants-up
  • JsonResponseHandler - Process errors and returns information on them as a JSON string.
  • CallbackHandler - Wraps a callable as a handler. You do not need to use this handler explicitly, Ouch will automatically wrap any callable you pass to ouchInstance.pushHandler.

Todo

- Add more handlers.

License

Ouch is open-sourced software licensed under the MIT license.

Issues· 3 开放

查看全部 Issues在 GitHub 打开

暂无开放 Issues,或尚未同步最近议题。

> 标签

JavaScriptbeautifyerrorhandlingnodejs

暂无评论,来聊聊你的看法吧

> 工具信息

发布日期2026年8月1日
最后更新2026年9月18日
分类编程语言
定价开源

> 相关工具

T
TypeScript
JavaScript 的超集,为前端与全栈提供静态类型
P
Python
通用编程语言,广泛用于 Web、数据与 AI
G
Go
Google 推出的简洁高效系统语言