Skip to content

peassoft/error-stringify

Repository files navigation

@peassoft/error-stringify

An utility function to stringify an Error or DOMException object.

Installation

$ npm i @peassoft/error-stringify

Usage 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.

About

Stringify an Error object

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors