# spawn-await

> spawn await

Latest version **0.0.8** (published 2021-10-13) · ISC license · 0 weekly downloads

## Install

```sh
npm install spawn-await
pnpm add spawn-await
yarn add spawn-await
bun add spawn-await
```

## Health

**Score 25/100 (F)** — status: abandoned.

Positive: has types; no vulnerabilities; high quality score.

Warnings: low downloads; no esm support; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.0.8 |
| Published | 2021-10-13 |
| First published | 2021-10-12 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 2.2 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 1 |
| Maintainers | yaserahmadi |
| Keywords | spawn, spwan_typescript, spawn_await, spwan_async, promise |

## Links

- npm: https://www.npmjs.com/package/spawn-await
- Repository: https://github.com/myas92/spawn-await
- Homepage: https://github.com/myas92/spawn-await.git#readme
- Issues: https://github.com/myas92/spawn-await/issues
- npm.io page: https://npm.io/package/spawn-await

## Alternatives

- [@commercetools/sync-actions](https://npm.io/package/@commercetools/sync-actions.md) — 25.1K weekly downloads
- [cwait](https://npm.io/package/cwait.md) — 21.4K weekly downloads
- [@ledgerhq/hw-app-cosmos](https://npm.io/package/@ledgerhq/hw-app-cosmos.md) — 4.2K weekly downloads
- [@financial-times/o-loading](https://npm.io/package/@financial-times/o-loading.md) — 2.8K weekly downloads
- [fa](https://npm.io/package/fa.md) — 185 weekly downloads

## Recent versions

- 0.0.8 (latest) — 2021-10-13
- 0.0.7 — 2021-10-13
- 0.0.6 — 2021-10-13
- 0.0.5 — 2021-10-12
- 0.0.4 — 2021-10-12
- 0.0.3 — 2021-10-12
- 0.0.2 — 2021-10-12
- 0.0.1 — 2021-10-12

## README

# spawn-await

[spawn-await](https://github.com/myas92/spawn-await) is synchronous module and will block the Node.js event loop, pausing execution of any additional code until the spawned process exits.

#### NOTE: don't need to `await` for using `spawn`

```
import {Spawn} from 'spawn-await'; 
  
const firstCommand = "ls"; // write your command
const {stdout, stderr, status } = Spawn(firstCommand);
```

***Returns: \<Object\>***

- `stdout` <string> The contents of output.
- `stderr` <string> The contents of output.
- `status` <number> | <null> The exit code of the subprocess, or null if the subprocess terminated due to a signal.

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