# just-promiseify

> It's a very simple library to convert callback-based flow into Promise style

Latest version **1.1.1** (published 2016-02-07) · MIT license · 0 weekly downloads

## Install

```sh
npm install just-promiseify
pnpm add just-promiseify
yarn add just-promiseify
bun add just-promiseify
```

## 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 | 1.1.1 |
| Published | 2016-02-07 |
| First published | 2015-12-02 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 1 |
| Author | Howard.Zuo |
| Maintainers | howard.zuo |
| Keywords | promiseify |

## Links

- npm: https://www.npmjs.com/package/just-promiseify
- Repository: https://github.com/leftstick/just-promiseify
- Homepage: https://github.com/leftstick/just-promiseify#readme
- Issues: https://github.com/leftstick/just-promiseify/issues
- npm.io page: https://npm.io/package/just-promiseify

## 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.1.1 (latest) — 2016-02-07
- 1.1.0 — 2016-01-08
- 1.0.0 — 2015-12-02

## README

just-promiseify
=====================
[![NPM version][npm-image]][npm-url]
![][david-url]
![][travis-url]
![][dt-url]
![][license-url]

It's a very simple library to convert callback-based flow into Promise style

> `just-promiseify` can be used in both `node` and `browser` env.

## Installation

```bash
npm install just-promiseify --save
```

## Usage

```javascript
var promiseify = require('just-promiseify');
var fs = require('fs');

var readFile = promiseify(fs.readFile);

readFile(txt, 'utf8')
    .then(function(data) {
        console.log('The file content is',data);
    })
    .catch(function(err){
        console.error('Error', err);
    });
```


## LICENSE ##

[MIT License](https://raw.githubusercontent.com/leftstick/just-promiseify/master/LICENSE)

[npm-url]: https://npmjs.org/package/just-promiseify
[npm-image]: https://badge.fury.io/js/just-promiseify.png
[travis-url]:https://api.travis-ci.org/leftstick/just-promiseify.svg?branch=master
[david-url]: https://david-dm.org/leftstick/just-promiseify.png
[dt-url]:https://img.shields.io/npm/dt/just-promiseify.svg
[license-url]:https://img.shields.io/npm/l/just-promiseify.svg

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