# node-exec-promise

> Execute commands from Node.js and get a Promise back.

Latest version **1.0.2** (published 2017-08-24) · MIT license · 0 weekly downloads

## Install

```sh
npm install node-exec-promise
pnpm add node-exec-promise
yarn add node-exec-promise
bun add node-exec-promise
```

## 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.2 |
| Published | 2017-08-24 |
| First published | 2016-05-29 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 8 |
| Author | Fabian Pirklbauer |
| Maintainers | fabiandev |
| Keywords | node, exec, execFile, promise, gulp |

## Links

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

## Alternatives

- [@expo/fingerprint](https://npm.io/package/@expo/fingerprint.md) — 6.2M weekly downloads
- [@azure/monitor-opentelemetry-exporter](https://npm.io/package/@azure/monitor-opentelemetry-exporter.md) — 850.0K weekly downloads
- [@azure/monitor-opentelemetry](https://npm.io/package/@azure/monitor-opentelemetry.md) — 624.0K weekly downloads
- [@posthog/ai](https://npm.io/package/@posthog/ai.md) — 423.3K weekly downloads
- [fakefilter](https://npm.io/package/fakefilter.md) — 63.9K weekly downloads

## Recent versions

- 1.0.2 (latest) — 2017-08-24
- 2.0.0-beta.1 (next) — 2017-12-04
- 1.0.1 — 2017-07-05
- 1.0.0 — 2017-07-03
- 0.1.1 — 2016-06-16
- 0.1.0 — 2016-05-29

## README

# node-exec-promise

# Installation

```bash
npm install --save node-exec-promise
```

# Example Usage

```js
var exec = require('node-exec-promise').exec;

exec('ls -lah /tmp').then(function(out) {
  console.log(out.stdout, out.stderr);
}, function(err) {
  console.error(err);
});
```

# Example Gulp Usage

```js
var execFile = require('node-exec-promise').execFile;

gulp.task('example', function(done) {
  execFile('ls', ['-lah', '/tmp']).then(function(out) {
    done();
  }, function(err) {
    // handle error
  });
});
```

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