# deasync-promise

> Transform async functions into sync with promise API

Latest version **1.0.1** (published 2016-09-05) · ISC license · 0 weekly downloads

## Install

```sh
npm install deasync-promise
pnpm add deasync-promise
yarn add deasync-promise
bun add deasync-promise
```

## Health

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

Positive: has types package; no vulnerabilities; high quality score.

Warnings: low downloads; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.1 |
| Published | 2016-09-05 |
| First published | 2016-09-05 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | separate (@types/deasync-promise) |
| Module format | CommonJS |
| Dependencies | 1 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 17 |
| Author | jakwuh |
| Maintainers | jakwuh |

## Links

- npm: https://www.npmjs.com/package/deasync-promise
- Repository: https://github.com/jakwuh/deasync-promise
- Homepage: https://github.com/jakwuh/deasync-promise#readme
- Issues: https://github.com/jakwuh/deasync-promise/issues
- npm.io page: https://npm.io/package/deasync-promise

## Dependencies (1)

- [deasync](https://npm.io/package/deasync.md) ^0.1.7

## Recent versions

- 1.0.1 (latest) — 2016-09-05
- 1.0.0 — 2016-09-05

## README

# deasync-promise

Transforms async functions into sync with promise API

## Usage

```js
import deasyncPromise from 'deasync-promise';
let promiseWhichWillBeResolved = generateSuccessPromise();
let syncResult = deasyncPromise(promiseWhichWillBeResolved)

let promiseWhichWillBeRejected = generateRejectedPromise();
try {
    let syncResult = deasyncPromise(promiseWhichWillBeRejected)
} catch (err) {
}
```

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