# antena-spawn

> Uniformely spawn processes with an antena connection

Latest version **0.1.2** (published 2017-10-09) · MIT license · 0 weekly downloads

## Install

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

## 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.2 |
| Published | 2017-10-09 |
| First published | 2017-09-28 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 1 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Laurent Christophe |
| Maintainers | lachrist |
| Keywords | Antena, Spawn, Process |

## Links

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

## Dependencies (1)

- [antena](https://npm.io/package/antena.md) 0.1.5

## Recent versions

- 0.1.2 (latest) — 2017-10-09
- 0.1.1 — 2017-10-07
- 0.0.0 — 2017-09-28

## README

# antena-spawn

Spawn inline scripts with an antena connection.
Usage [here](/demo), live demo [here](https://cdn.rawgit.com/lachrist/antena-spawn/9fe0f5eb/demo/worker.html).

## `spawn = require("antena/spawn/[node|browser|mock]")(receptor)`

* `receptor : antena.Receptor`
* `child = spawn(script, argv)`
  * `script : string`
  * `argv : [string]`
  * `child : events.EventEmitter`
    * `stdin : stream.Writable`
    * `stdout : stream.Readable`
    * `stderr : stream.Readable`
    * `send(message)`
      * `message : json`
    * Event `message`
      * `message : json`
    * `kill(signal)`
      * `signal : string`
    * Event `exit`
      * `code : number`
      * `signal : string`
    * Event `close`
      * `code : number`
      * `signal : string`
    * Event `error`
      * `error : Error`

## Shimed variables accessible in the child's scope

* `global : object`
* `console : console.Console`
* `process : events.EventEmitter`
    * `emitter : antena.Emitter`
    * `argv : [string]`
    * `stdin : stream.Readable`
    * `stdout : stream.Writable`
    * `stderr : stream.Writable`
    * `exit(code)`
      * `code : number`
    * `send(message)`
      * `message : json`
    * Event `message`
      * `message : json`

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