1.2.1 • Published 1 year ago
@chubbyts/chubbyts-throwable-to-error v1.2.1
chubbyts-throwable-to-error
Description
It converts any throwable into an Error.
Requirements
- node: 16
Installation
Through NPM as @chubbyts/chubbyts-throwable-to-error.
npm i @chubbyts/chubbyts-throwable-to-error@^1.2.1
Usage
try {
throw {key: 'value'};
} catch (e) {
const error = throwableToError(e);
}
Copyright
2023 Dominik Zogg