Errors
Errors.
Usage
var ns = require( '@stdlib/error' );
ns
Errors.
var o = ns;
// returns {...}
reviveError( key, value )
: revive a JSON-serialized error object.error2json( error )
: return a JSON representation of an error object.
Examples
var objectKeys = require( '@stdlib/utils/keys' );
var ns = require( '@stdlib/error' );
console.log( objectKeys( ns ) );