# ascallback

> Use bluebird's ascallback (aka nodeify) to convert promises to node style callbacks.

Latest version **1.1.1** (published 2016-08-17) · MIT license · 0 weekly downloads

## Install

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

## 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.1 |
| Published | 2016-08-17 |
| First published | 2016-02-09 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 2 |
| Author | Adam Crabtree |
| Maintainers | crabdude |
| Keywords | promise, then, nodeify, callback, ascallback |

## Links

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

## Alternatives

- [@pothos/plugin-authz](https://npm.io/package/@pothos/plugin-authz.md) — 12.4K weekly downloads
- [@bounded-sh/client](https://npm.io/package/@bounded-sh/client.md) — 3.2K weekly downloads
- [@luigi-project/plugin-auth-oauth2](https://npm.io/package/@luigi-project/plugin-auth-oauth2.md) — 2.3K weekly downloads
- [@nocobase/plugin-verification](https://npm.io/package/@nocobase/plugin-verification.md) — 2.0K weekly downloads
- [escher-request](https://npm.io/package/escher-request.md) — 545 weekly downloads

## Recent versions

- 1.1.1 (latest) — 2016-08-17
- 1.1.0 — 2016-02-09

## README

# asCallback

Use `bluebird`'s [`promise.asCallback(callback)`](http://bluebirdjs.com/docs/api/ascallback.html) (aka `.nodeify`) method as a function to convert non-bluebird promises to node style callbacks.

## Installation

```bash
$ npm install asCallback
```

## Usage

### Functional

Call `asCallback` directly passing the `promise`, `callback` and an optional `options` argument.

```javascript
var asCallback = require('ascallback')

function myAsyncMethod(arg, callback) {
  return asCallback(myPromiseMethod(arg), callback)
}
```

See the [bluebird's `.asCallback` docs](http://bluebirdjs.com/docs/api/ascallback.html) for full feature set and supported options like [`"spread"`](http://bluebirdjs.com/docs/api/ascallback.html#option-spread).

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