Socket
Book a DemoInstallSign in
Socket

apr-main

Package Overview
Dependencies
Maintainers
1
Versions
9
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

apr-main

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

latest
Source
npmnpm
Version
4.0.3
Version published
Maintainers
1
Created
Source

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 nothing
main(async () => undefined) // writes nothing
main(async () => { throw new Error('uncaught error') }) // writes the stack trace to stderr and exists

Returns Promise

Keywords

main

FAQs

Package last updated on 28 Jan 2018

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts