# asynccallback

> Convert Callback functions to Promises and async code.

Latest version **1.0.2** (published 2017-09-24) · ISC license · 0 weekly downloads

## Install

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

## 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.2 |
| Published | 2017-09-24 |
| First published | 2017-09-24 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Maintainers | droid9016 |

## Links

- npm: https://www.npmjs.com/package/asynccallback
- npm.io page: https://npm.io/package/asynccallback

## Recent versions

- 1.0.2 (latest) — 2017-09-24
- 1.0.1 — 2017-09-24
- 1.0.0 — 2017-09-24

## README

Convert Callback functions to Promises and async code.

```
const ac = require('asynccallback');

function doSomthing(value, callback){
	callback(value);
}

async function worker1(){
	let data = await ac(doSomthing, 'Hello World');
	console.log(data);
}

function worker2(){
	ac(doSomthing, 'Hello World').then(value => {
		console.log(value);
	});
}

worker1();
worker2();
```

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