# then-denodeify

> [![NPM](https://nodei.co/npm/then-denodeify.png)](https://nodei.co/npm/then-denodeify/)

Latest version **1.0.1** (published 2017-01-20) · WTFPL license · 0 weekly downloads

## Install

```sh
npm install then-denodeify
pnpm add then-denodeify
yarn add then-denodeify
bun add then-denodeify
```

## 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.0.1 |
| Published | 2017-01-20 |
| First published | 2015-09-22 |
| Weekly downloads | 0 |
| License | WTFPL |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | TehShrike |
| Maintainers | tehshrike |
| Keywords | denodeify, promise, then |

## Links

- npm: https://www.npmjs.com/package/then-denodeify
- Repository: https://github.com/TehShrike/then-denodeify
- Homepage: https://github.com/TehShrike/then-denodeify#readme
- Issues: https://github.com/TehShrike/then-denodeify/issues
- npm.io page: https://npm.io/package/then-denodeify

## Alternatives

- [@clerk/clerk-expo](https://npm.io/package/@clerk/clerk-expo.md) — 133.6K weekly downloads
- [@pothos/plugin-authz](https://npm.io/package/@pothos/plugin-authz.md) — 12.4K weekly downloads
- [@bounded-sh/client](https://npm.io/package/@bounded-sh/client.md) — 3.2K weekly downloads
- [@luigi-project/plugin-auth-oauth2](https://npm.io/package/@luigi-project/plugin-auth-oauth2.md) — 2.3K weekly downloads
- [@nocobase/plugin-verification](https://npm.io/package/@nocobase/plugin-verification.md) — 2.0K weekly downloads

## Recent versions

- 1.0.1 (latest) — 2017-01-20
- 1.0.0 — 2015-09-22

## README

Copied from https://github.com/then/promise/blob/master/src/node-extensions.js without anything else.

[![Build Status](https://travis-ci.org/TehShrike/then-denodeify.svg)](https://travis-ci.org/TehShrike/then-denodeify)

Converts a function that calls an error-first callback into a function that returns a promise.

```js
var denodeify = require('then-denodeify')

var stat = denodeify(fs.stat)

stat('/tmp/butts').then(function(results) {

})
```

**However** if the original function happens to return a promise instead of calling the callback, everything will work as it should.

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