# node-promises

> This module add promise version to all node module functions

Latest version **0.2.1** (published 2015-07-06) · MIT license · 0 weekly downloads

## Install

```sh
npm install node-promises
pnpm add node-promises
yarn add node-promises
bun add node-promises
```

## 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.2.1 |
| Published | 2015-07-06 |
| First published | 2015-07-03 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 1 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Amit Choukroun |
| Maintainers | amit7000 |
| Keywords | promise, q, fs |

## Links

- npm: https://www.npmjs.com/package/node-promises
- Repository: https://github.com/amitmtrn/node-promises
- Homepage: https://github.com/amitmtrn/node-promises#readme
- Issues: https://github.com/amitmtrn/node-promises/issues
- npm.io page: https://npm.io/package/node-promises

## Dependencies (1)

- [q](https://npm.io/package/q.md) ^1.4.1

## Alternatives

- [apollo-link-http-common](https://npm.io/package/apollo-link-http-common.md) — 879.0K weekly downloads
- [react-relay](https://npm.io/package/react-relay.md) — 336.8K weekly downloads
- [relay-test-utils](https://npm.io/package/relay-test-utils.md) — 181.6K weekly downloads
- [@vendure/core](https://npm.io/package/@vendure/core.md) — 14.8K weekly downloads
- [@pnpm/deps.graph-sequencer](https://npm.io/package/@pnpm/deps.graph-sequencer.md) — 13.4K weekly downloads

## Recent versions

- 0.2.1 (latest) — 2015-07-06
- 0.2.0 — 2015-07-06
- 0.0.1 — 2015-07-03

## README

# node-promises

This module add promise version to all node module functions

Example:
```js
var nodePromise = require('node-promises');
var fs = nodePromise('fs');

fs.existsPromise(__filename)
.spread(function(exists) { //exists=true
  return fs.mkdirPromise(__dirname + '/test');
}).spread(function() {
  // test folder has been created
});
```

> since the promise return the argument array of the callback you should prefer use `spread` instead `then`

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