# babel-plugin-get-rid-of-async-await

> Get-rid-of-async-await

Latest version **0.0.4** (published 2018-01-06) · MIT license · 0 weekly downloads

## Install

```sh
npm install babel-plugin-get-rid-of-async-await
pnpm add babel-plugin-get-rid-of-async-await
yarn add babel-plugin-get-rid-of-async-await
bun add babel-plugin-get-rid-of-async-await
```

## Health

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

Positive: no vulnerabilities.

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

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.0.4 |
| Published | 2018-01-06 |
| First published | 2017-12-15 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Łukasz Gandecki |
| Maintainers | lgandecki |
| Keywords | babel-plugin |

## Links

- npm: https://www.npmjs.com/package/babel-plugin-get-rid-of-async-await
- Repository: https://github.com/lgandecki/babel-plugin-get-rid-of-async-await
- Homepage: https://github.com/lgandecki/babel-plugin-get-rid-of-async-await#readme
- Issues: https://github.com/lgandecki/babel-plugin-get-rid-of-async-await/issues
- npm.io page: https://npm.io/package/babel-plugin-get-rid-of-async-await

## Alternatives

- [@openai/codex-sdk](https://npm.io/package/@openai/codex-sdk.md) — 731.4K weekly downloads
- [babel-plugin-transform-react-jsx](https://npm.io/package/babel-plugin-transform-react-jsx.md) — 565.0K weekly downloads
- [babel-helper-remove-or-void](https://npm.io/package/babel-helper-remove-or-void.md) — 508.5K weekly downloads
- [@pnpm/store-controller-types](https://npm.io/package/@pnpm/store-controller-types.md) — 186.9K weekly downloads
- [react-native-signature-canvas](https://npm.io/package/react-native-signature-canvas.md) — 155.6K weekly downloads

## Recent versions

- 0.0.4 (latest) — 2018-01-06
- 0.0.3 — 2018-01-06
- 0.0.2 — 2017-12-15

## README

# babel/transform-get-rid-of-async-await

> Turn async functions into non-async functions.

Why would you ever do that?
I'm building a generic testing wrapper that allows me to reuse the same pageobjects for enzyme/chimp/cypress.io/webdriverio.
The idea is that in tests I only use page objects, and the underlying implementation of them is hidden from a user.
Unfortunately, some of the API - like cypress.io or chimp 1.0 or not async/await compatible, while for enzyme it's a must.
This way I can use the same code in both, by using different BABEL_ENV.

## Example

**In**

```javascript
async function foo() {
  await bar();
}
```

**Out**

```javascript
function foo() {
  bar();
}
```


## Installation

```sh
npm install --save-dev babel-plugin-get-rid-of-async-await
```

## Usage

### Via `.babelrc` (Recommended)

**.babelrc**

Without options:

```json
{
  "plugins": ["babel/transform-get-rid-of-async-await"]
}
```


### Via CLI

```sh
babel --plugins babel/transform-get-rid-of-async-await
```

### Via Node API

```javascript
require("babel/core").transform("code", {
  plugins: ["babel/transform-get-rid-of-async-await"]
});
```

---
_Source: https://npm.io/package/babel-plugin-get-rid-of-async-await · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
