# callbox

> Simple encapsulation utility for your callback code

Latest version **1.0.0** (published 2018-10-24) · Apache-2.0 license · 0 weekly downloads

## Install

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

## 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 | 2018-10-24 |
| First published | 2018-10-24 |
| Weekly downloads | 0 |
| License | Apache-2.0 |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 1.6 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | Brecht Savelkoul |
| Maintainers | savelbr |
| Keywords | encapsulate, callback, promise, async, await |

## Links

- npm: https://www.npmjs.com/package/callbox
- Repository: https://github.com/brechtcs/callbox
- Homepage: https://github.com/brechtcs/callbox#readme
- Issues: https://github.com/brechtcs/callbox/issues
- npm.io page: https://npm.io/package/callbox

## Alternatives

- [@commercetools/sync-actions](https://npm.io/package/@commercetools/sync-actions.md) — 25.1K weekly downloads
- [cwait](https://npm.io/package/cwait.md) — 21.4K weekly downloads
- [@ledgerhq/hw-app-cosmos](https://npm.io/package/@ledgerhq/hw-app-cosmos.md) — 4.2K weekly downloads
- [@financial-times/o-loading](https://npm.io/package/@financial-times/o-loading.md) — 2.8K weekly downloads
- [fa](https://npm.io/package/fa.md) — 185 weekly downloads

## Recent versions

- 1.0.0 (latest) — 2018-10-24

## README

# callbox

Simple encapsulation utility for your callback code.

## Usage

```js
var callbox = require('callbox')
var fs = require('fs')

async function main () {
  var result = await callbox(done => {
    fs.writeFile('hello', 'world', 'utf8', err => {
      if (err) return done(err)
      fs.readFile('hello', 'utf8', done)
    })
  })

  console.log(result) // 'world'
}

main()
```

## License

Apache-2.0

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