@peassoft/error-stringify
v1.0.1
Published
An utility function to stringify an Error or DOMException object
Downloads
231
Maintainers
Readme
@peassoft/error-stringify
An utility function to stringify an Error or DOMException object.
Installation
$ npm i @peassoft/error-stringifyUsage Example
import { stringifyError } from '@peassoft/error-stringify';
const myError = new Error('message');
const result: string = stringifyError(myError);API Reference
stringifyError(err: Error | DOMException) => string
Stringify an Error or DOMException object.
