Skip to content

Transforms javascript error objects into stringified json.

License

Notifications You must be signed in to change notification settings

benleen/good-errors

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

42 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

good-errors

Utility stream to transform errors to object literals.

Build Status

Example usage as hapijs server options:

const options = {
    reporters: {
        consoleReporter: [
            {
                module: '@hapi/good-squeeze',
                name: 'Squeeze',
                args: [{ log: '*', response: '*' }]
            },
            {
                module: 'good-errors'
            },
            {
                module: '@hapi/good-console'
            },
            'stdout'
        ]
    }
};

About

Transforms javascript error objects into stringified json.

Resources

License

Stars

Watchers

Forks

Packages

No packages published