# nodecb2promise

> Small util to wrap node(-like) callback funtions into ES6 promises

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

## Install

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

## 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.0.3 |
| Published | 2016-08-08 |
| First published | 2016-08-08 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 1 |
| Author | Sander Elias |
| Maintainers | sanderelias |

## Links

- npm: https://www.npmjs.com/package/nodecb2promise
- Repository: https://github.com/SanderElias/nodeCB2promise
- Homepage: https://github.com/SanderElias/nodeCB2promise#readme
- Issues: https://github.com/SanderElias/nodeCB2promise/issues
- npm.io page: https://npm.io/package/nodecb2promise

## Recent versions

- 0.0.3 (latest) — 2016-08-08
- 0.0.2 — 2016-08-08

## README

# nodeCB2promise
Small helper to wrap a node(-like) callback function into a ES6 promise

Sample:

```javascript
const wrapFn = require("nodecb2promise");

const fr = wrapFn(require('fs').readFile);

fr('package.json')
   .then(file => console.log(file.toString()))
```

This module exists primarly to avoid adding 3rth party resouces for a few calls where I just need a simple conversion from callbacks to promises.

## needs: node 6+

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