4.0.3 • Published 6 years ago

apr-main v4.0.3

Weekly downloads
162
License
MIT
Repository
github
Last release
6 years ago

main

Catches a promise error, writes the stacktrace to stderr and exists

npm.io npm.io

Parameters

Examples

import main from 'apr-main';

main(async () => 'hello') // writes nothing
main(async () => undefined) // writes nothing
main(async () => { throw new Error('uncaught error') }) // writes the stack trace to stderr and exists

Returns Promise