How to use the debrief.summarize 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 / either.js View on Github external
err2 =>
                        Err(
                            annotate(
                                blob,
                                [
                                    'Either:',
                                    itemize(summarize(err1).join('\n')),
                                    itemize(summarize(err2).join('\n')),
                                ].join('\n')
                            )
                        )
                )
github nvie / decoders / src / guard.js View on Github external
function serializeSimple(annotation: Annotation) {
    return summarize(annotation).join('\n');
}
github nvie / decoders / src / either.js View on Github external
err2 =>
                        Err(
                            annotate(
                                blob,
                                [
                                    'Either:',
                                    itemize(summarize(err1).join('\n')),
                                    itemize(summarize(err2).join('\n')),
                                ].join('\n')
                            )
                        )
                )

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