BETAmodules.com is in beta — open to partnerships & joint ventures.Build with us

error-muster

v3.0.1npm· JavaScript

这是一个中间件,将应用程序所有的异常状态,通过自定义状态码的方式,统一使用JSON文件管理 # 为什么 当错误反馈信息散落在系统的各个地方时,是不易于管理的。我们往往要写重复的代码反馈理同样的错误,这些代码让程序看起来更混乱。如果用更统一简洁的方式在程序中反馈错误,有利于提高开发效率和定位错误。 ## 特性 - 优化程序处理流程 - 减少错误处理代码的量,更专注于正常的逻辑 - 多种错误抛出方式 1.通过定义的错误码抛出 2.直接抛出字符串 3.抛出一个异常类 - 灵活定义错误的处理方式 错误可以直接js

The verdict
Abandoned. Last published 3 years ago. No recent activity — look for a maintained alternative.
No recent activity — look for a maintained alternative.
Live from the npm registry · derived rules, not AI
How it scores
MaintenanceAbandoned
PopularityNiche
SecurityClean
LicensePermissive
DepsZero deps
Maintenance
Last published 3 years ago.
Popularity
7 downloads / week
Security
No known advisories for this version (OSV).
License
MIT
Dependencies
No runtime dependencies
Recent releases
  • 3.0.13 years ago
  • 3.0.03 years ago
  • 2.5.46 years ago
  • 2.3.48 years ago
  • 2.3.38 years ago
  • 2.3.28 years ago
  • 2.2.28 years ago
  • 2.1.29 years ago