JSPM

  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 4
  • Score
    100M100P100Q49268F
  • License MIT

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.

Package Exports

  • @labrynx/error-enhanced
  • @labrynx/error-enhanced/package.json

Readme

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.