# promisify-function

> Turn a callback-style function into a function that returns a promise

Latest version **1.3.2** (published 2016-02-02) · ISC license · 0 weekly downloads

## Install

```sh
npm install promisify-function
pnpm add promisify-function
yarn add promisify-function
bun add promisify-function
```

## 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.3.2 |
| Published | 2016-02-02 |
| First published | 2016-01-18 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 5 |
| Author | Javier Collado |
| Maintainers | jcollado |
| Keywords | promisify, function |

## Links

- npm: https://www.npmjs.com/package/promisify-function
- Repository: https://github.com/jcollado/promisify-function
- Homepage: https://github.com/jcollado/promisify-function#readme
- Issues: https://github.com/jcollado/promisify-function/issues
- npm.io page: https://npm.io/package/promisify-function

## Recent versions

- 1.3.2 (latest) — 2016-02-02
- 1.3.1 — 2016-02-02
- 1.3.0 — 2016-02-02
- 1.2.1 — 2016-01-22
- 1.2.0 — 2016-01-20
- 1.1.3 — 2016-01-20
- 1.1.2 — 2016-01-19
- 1.1.1 — 2016-01-18
- 1.1.0 — 2016-01-18
- 1.0.0 — 2016-01-18

## README

# promisify-function

[![npm](https://img.shields.io/npm/v/promisify-function.svg)](https://www.npmjs.com/package/promisify-function)
[![Build Status](https://travis-ci.org/jcollado/promisify-function.svg?branch=master)](https://travis-ci.org/jcollado/promisify-function)
[![Coverage Status](https://coveralls.io/repos/jcollado/promisify-function/badge.svg?branch=master&service=github)](https://coveralls.io/github/jcollado/promisify-function?branch=master)
[![Dependency Status](https://david-dm.org/jcollado/promisify-function.svg)](https://david-dm.org/jcollado/promisify-function)
[![devDependency Status](https://david-dm.org/jcollado/promisify-function/dev-status.svg)](https://david-dm.org/jcollado/promisify-function#info=devDependencies)
[![js-standard-style](https://img.shields.io/badge/code%20style-standard-brightgreen.svg)](http://standardjs.com/)
[![Commitizen friendly](https://img.shields.io/badge/commitizen-friendly-brightgreen.svg)](http://commitizen.github.io/cz-cli/)
[![semantic-release](https://img.shields.io/badge/%20%20%F0%9F%93%A6%F0%9F%9A%80-semantic--release-e10079.svg)](https://github.com/semantic-release/semantic-release)

Turn a callback style function into a function that returns a promise.

## Installation

The recommended way to install `promisify-function` is as a dependency of a project:

```bash
npm install --save promisify-function
```

## Usage

Pass a callback style function and get a function the returns a [Promise](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise) as result:

```node
const fs = require('fs')
const promisify = require('promisify-function')
const mkdir = promisify(fs.mkdir)
```

## Contributing

Any contribution is more than welcome. In particular, if:

- there's something that doesn't work as expected or you have an idea for a nice to have feature, then please submit an issue [here](https://github.com/jcollado/promisify-function/issues/new)
- you know how to fix a problem or improve the code, then please submit a pull request [here](https://github.com/jcollado/promisify-function/compare)

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