# desync

> wrap a synchronous function in an async one

Latest version **1.1.2** (published 2013-11-12) · MIT license · 0 weekly downloads

## Install

```sh
npm install desync
pnpm add desync
yarn add desync
bun add desync
```

## 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.1.2 |
| Published | 2013-11-12 |
| First published | 2013-02-09 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Nathan Zadoks |
| Maintainers | nathan7 |
| Keywords | async, utility |

## Links

- npm: https://www.npmjs.com/package/desync
- Repository: https://github.com/nathan7/desync
- Issues: https://github.com/nathan7/desync/issues
- npm.io page: https://npm.io/package/desync

## Alternatives

- [lodash.assign](https://npm.io/package/lodash.assign.md) — 2.3M weekly downloads
- [lodash.chunk](https://npm.io/package/lodash.chunk.md) — 1.8M weekly downloads
- [react-native-ios-utilities](https://npm.io/package/react-native-ios-utilities.md) — 138.5K weekly downloads
- [@technically/lodash](https://npm.io/package/@technically/lodash.md) — 50.9K weekly downloads
- [@fluid-topics/ft-icon](https://npm.io/package/@fluid-topics/ft-icon.md) — 20.6K weekly downloads

## Recent versions

- 1.1.2 (latest) — 2013-11-12
- 1.1.1 — 2013-02-09
- 1.1.0 — 2013-02-09
- 1.0.0 — 2013-02-09

## README

[![Build Status](https://travis-ci.org/nathan7/desync.png)](https://travis-ci.org/nathan7/desync)

# desync

  wrap an synchronous function in an async one

## Installation

    $ npm install desync

    $ component install nathan7/desync

## desync(fn)
returns a function that takes one more argument - a callback with signature function(err, result). The callback is guaranteed to be called asynchronously.
desync will pass the return value of fn as the result. desync will catch thrown exceptions and pass them to the callback.

## License

  MIT

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