# top-level-async

> Lets you run an async function at the top level of a node app.

Latest version **1.0.0** (published 2019-05-02) · ISC license · 0 weekly downloads

## Install

```sh
npm install top-level-async
pnpm add top-level-async
yarn add top-level-async
bun add top-level-async
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.0 |
| Published | 2019-05-02 |
| First published | 2019-05-02 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 739 B |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Maintainers | ryangrahamnc |

## Links

- npm: https://www.npmjs.com/package/top-level-async
- Repository: https://github.com/ryangrahamnc/top-level-async
- Homepage: https://github.com/ryangrahamnc/top-level-async#readme
- Issues: https://github.com/ryangrahamnc/top-level-async/issues
- npm.io page: https://npm.io/package/top-level-async

## Recent versions

- 1.0.0 (latest) — 2019-05-02

## README

# Top Level Async

Lets you run an async function at the top level of a node app.

Because people are too afraid of writing `;((async()=>{ /* code */ })());`

# Install

`npm i --save top-level-async`

# Usage

```
topLevelAsync = require('top-level-async');
topLevelAsync(async()=>{
    await someFunc();
    console.log('we did it! good job everyone!')
});
```

---
_Source: https://npm.io/package/top-level-async · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
