# pdenodeify

> A denodeify that doesn't suck

Latest version **0.1.0** (published 2015-02-17) · MIT license · 0 weekly downloads

## Install

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

## 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.0 |
| Published | 2015-02-17 |
| First published | 2014-10-07 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | Matthew Phillips |
| Maintainers | matthewp |

## Links

- npm: https://www.npmjs.com/package/pdenodeify
- npm.io page: https://npm.io/package/pdenodeify

## Recent versions

- 0.1.0 (latest) — 2015-02-17
- 0.0.2 — 2014-10-07
- 0.0.1 — 2014-10-07

## README

[![Build Status](https://travis-ci.org/matthewp/pdenodeify.svg?branch=master)](https://travis-ci.org/matthewp/pdenodeify)

# pdenodeify

Dead simple `denodeify` function for Promises. Supports native promises, when they come to Node and/or the browser, falling back to [es6-promise](https://github.com/jakearchibald/es6-promise) if the global isn't available. Since the polyfill is optional you'll need to include it yourself (in Node just make sure it's installed).

# Example

```js
var denodeify = require('pdenodeify');
var readFile = denodeify(require('fs').readFile);

readFile('path/to/file').then(function(data) {
  // Use data
});
```

# License

MIT

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