# standard-as-callback

> A performant and standard (Bluebird) library that registers a node-style callback on a promise

Latest version **2.1.0** (published 2021-03-14) · MIT license · 0 weekly downloads

## Install

```sh
npm install standard-as-callback
pnpm add standard-as-callback
yarn add standard-as-callback
bun add standard-as-callback
```

## Health

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

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

Warnings: low downloads; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 2.1.0 |
| Published | 2021-03-14 |
| First published | 2018-06-23 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 5.2 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | luin |
| Maintainers | luin |
| Keywords | ascallback, nodeify, promise, bluebird |

## Links

- npm: https://www.npmjs.com/package/standard-as-callback
- Repository: https://github.com/luin/asCallback
- Homepage: https://github.com/luin/asCallback#readme
- Issues: https://github.com/luin/asCallback/issues
- npm.io page: https://npm.io/package/standard-as-callback

## 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

- 2.1.0 (latest) — 2021-03-14
- 2.0.1 — 2019-02-03
- 2.0.0 — 2019-02-03
- 1.0.2 — 2019-02-03
- 1.0.1 — 2018-06-30
- 1.0.0 — 2018-06-23

## README

# Standard asCallback
A performant and standard (Bluebird) library that registers a node-style callback on a promise.

[![Build Status](https://travis-ci.org/luin/asCallback.svg?branch=master)](https://travis-ci.org/luin/asCallback)

## Install

```
$ npm install standard-as-callback
```

## Usage

```javascript
const asCallback = require('standard-as-callback')

const promise = new Promise(function (resolve) {
  setTimeout(function () {
    resolve('hello world!')
  }, 1000)
})

asCallback(promise, function callback (err, res) {
  console.log(err, res) // null, 'hello world!'
})
```

## Thanks

Most code of this library are ported from the awesome Bluebird library.

## License
The MIT License.

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