apr-main
4.0.3 • Public • Published
main
Catches a promise error, writes the stacktrace to stderr and exists
Parameters
Examples
import main from 'apr-main';
main(async () => 'hello')
main(async () => undefined)
main(async () => { throw new Error('uncaught error') })
Returns Promise
Package Sidebar
Install
Weekly Downloads