# promisifier

> A simple callback that turns every Async function into promise.

Latest version **0.1.4** (published 2014-01-10) · MIT license · 0 weekly downloads

## Install

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

## Health

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

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.1.4 |
| Published | 2014-01-10 |
| First published | 2013-12-19 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Node | >= 0.8.0 |
| Dependencies | 1 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 1 |
| Author | ClickHere |
| Maintainers | tounano |
| Keywords | promise, promises, promisify |

## Links

- npm: https://www.npmjs.com/package/promisifier
- Repository: https://github.com/tounano/promisifier.js
- Issues: https://github.com/tounano/promisifier.js/issues
- npm.io page: https://npm.io/package/promisifier

## Dependencies (1)

- [when](https://npm.io/package/when.md) 2.7.x

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

- 0.1.4 (latest) — 2014-01-10
- 0.1.3 — 2013-12-20
- 0.1.2 — 2013-12-19
- 0.1.1 — 2013-12-19

## README

# Promisifier

    Turns any Async JS function into a Promise.

## Installation

    $ npm install promisifier

## Usage

```javascript
var promisifier = require("promisifier");
```

### promisifier.asyncMethodToPromise(method,[arg1[, arg2[, ...]]])

Promisify an Async function with arguments.

```javascript
var promisifier = require("promisifier"),
    request = require("request");

var promise = promisifier.asyncMethodToPromise(request.get, "http://google.com", options);

promise.then(console.log);
```

### asyncMethodToPromiseWithArrayAsArgs(method, args)

Pass args as array.

```javascript
var promisifier = require("promisifier"),
    request = require("request");

var args = [
    "http://google.com",
    {}
];

var promise = promisifier.asyncMethodToPromise(request.get, args);

promise.then(console.log);
```

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