main Catches a promise error, writes the stacktrace to stderr and exists Parameters input Promise Examples import main from 'apr-main'; main(async () => 'hello') // writes nothingmain(async () => undefined) // writes nothingmain(async () => { throw new Error('uncaught error') }) // writes the stack trace to stderr and exists Returns Promise