1.3.2 • Published 10 months ago

@chubbyts/chubbyts-throwable-to-error v1.3.2

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

chubbyts-throwable-to-error

CI Coverage Status Mutation testing badge npm-version

bugs code_smells coverage duplicated_lines_density ncloc sqale_rating alert_status reliability_rating security_rating sqale_index vulnerabilities

Description

It converts any throwable into an Error.

Requirements

  • node: 18

Installation

Through NPM as @chubbyts/chubbyts-throwable-to-error.

npm i @chubbyts/chubbyts-throwable-to-error@^1.3.2

Usage

import { throwableToError } from '@chubbyts/chubbyts-throwable-to-error/dist/throwable-to-error';

try {
   throw {key: 'value'};
} catch (e) {
  const error = throwableToError(e);
}

Copyright

2025 Dominik Zogg

1.3.2

10 months ago

1.3.1

10 months ago

1.3.0

10 months ago

2.0.0

10 months ago

1.2.0

2 years ago

1.1.1

2 years ago

1.2.1

2 years ago

1.1.0

2 years ago

1.0.1

3 years ago

1.0.0

3 years ago