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
Versions
Current Tags
- VersionDownloads (Last 7 Days)
- 4.0.3
144
Version History
Package Sidebar
Install
Weekly Downloads