2.7.0 • Published 7 months ago

@labrynx/error-enhanced v2.7.0

Weekly downloads
-
License
MIT
Repository
github
Last release
7 months ago

Enhanced Error Enrichment for Node.js

Supercharge your Node.js error handling with this TypeScript library. Leverage modular architecture to enrich error objects with identifiers, system context, user info, and HTTP statuses. Perfect for debugging, logging, and boosting application robustness.

npm

Features

  • Unification of Error Objects
  • Use of Enhancers for Dynamic Error Enrichment
  • Enum-based Error Categorization
  • Strongly Typed Interfaces

Quick Start

error-enhanced is a TypeScript library focused on enriching error handling capabilities in Node.js.

Quick Example:

const error = new ErrorEnhanced([new IdentifiersEnhanced()]);
error.setErrorCode(400).setSeverity(ErrorEnhanced.Severity.HIGH);

Installation

To install the package, use the following npm command:

npm install @labrynx/error-enhanced

Documentation

For in-depth documentation, including explanations on enhancers, utilities, enums, and more, please refer to the Wiki.

Contributing

We welcome contributions! Please see our Contributing Guidelines for more information.

Changelog

For a detailed list of changes, check out the CHANGELOG.