# detect-missing-await

> Detects potential missing `await` calls in JavaScript/Typescript at runtime

Latest version **1.0.0** (published 2019-12-06) · MIT license · 0 weekly downloads

## Install

```sh
npm install detect-missing-await
pnpm add detect-missing-await
yarn add detect-missing-await
bun add detect-missing-await
```

## 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-12-06 |
| First published | 2019-12-06 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 3.6 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 8 |
| Author | Steve Faulkner |
| Maintainers | southpolesteve |

## Links

- npm: https://www.npmjs.com/package/detect-missing-await
- Repository: https://github.com/southpolesteve/detect-missing-await
- Homepage: https://github.com/southpolesteve/detect-missing-await#readme
- Issues: https://github.com/southpolesteve/detect-missing-await/issues
- npm.io page: https://npm.io/package/detect-missing-await

## Recent versions

- 1.0.0 (latest) — 2019-12-06

## README

# detect-missing-await

This module helps you find missing `await` statements at runtime.

It is a runtime analog to the [eslint "no-floating-promises" rule](https://github.com/typescript-eslint/typescript-eslint/blob/master/packages/eslint-plugin/docs/rules/no-floating-promises.md)

> 🚨 Do not use this module in production 🚨
> It should be used for debugging only
> It mutates the `Promise` global and does magic with proxies
> This is dangerous

## Installation

`npm install detect-missing-await`

## Example usage

```js
require('detect-missing-await')

async function main() {
  const promise1 = await Promise.resolve()
  const promise2 = Promise.resolve() // Will log as missing an `await` statement
}

main()
```

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