How to use the debrief.serialize function in debrief

To help you get started, we’ve selected a few debrief examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github nvie / decoders / src / guard.js View on Github external
.mapError(annotation => {
                const err = new Error('\n' + serialize(annotation));
                err.name = 'Decoding error';
                return err;
            })
            .unwrap();

debrief

Object serialization and annotation, for use in human-friendly error messages

MIT
Latest version published 3 years ago

Package Health Score

45 / 100
Full package analysis