# forkee

> Wrapper around the child process to integrate with the request/response interaction of fork

Latest version **1.0.0** (published 2015-05-10) · MIT license · 0 weekly downloads

## Install

```sh
npm install forkee
pnpm add forkee
yarn add forkee
bun add forkee
```

## 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.0 |
| Published | 2015-05-10 |
| First published | 2014-02-12 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Node | 0.10.x |
| Dependencies | 1 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 6 |
| Author | Jarrett Cruger |
| Maintainers | jcrugzz |

## Links

- npm: https://www.npmjs.com/package/forkee
- Repository: https://github.com/jcrugzz/forkee
- Issues: https://github.com/jcrugzz/forkee/issues
- npm.io page: https://npm.io/package/forkee

## Dependencies (1)

- [errs](https://npm.io/package/errs.md) ^0.3.2

## Recent versions

- 1.0.0 (latest) — 2015-05-10
- 0.1.3 — 2014-06-26
- 0.1.2 — 2014-02-14
- 0.1.1 — 2014-02-12
- 0.1.0 — 2014-02-12
- 0.0.2 — 2014-02-12
- 0.0.1 — 2014-02-12
- 0.0.0 — 2014-02-12

## README

# forkee

An extendable prototype for use in creating an agnostic request/response based
child process. It is meant to be used with something like [`fork`][fork] in
order to make it a more pleasurable experience writing node processes meant for
this purpose. Tests for this module are found in [`fork`][fork].

## example

```js

var Forkee = require('forkee');

var forked = new Forkee()
  .on('request', function (message, callback) {
    //
    // Do something async based on message
    //
    var payload = { hi: 'there' };
    callback(null, payload);
  });

//
// If we want to log events from out child process.
//

forked.notify('website:finished', { id: '9872231' });

//
// We can also just take a callback!
//

var proc = Forkee(function (message, callback) {
  //
  // Do something with message and acquire return payload
  //
  var payload = { woooo: 'yeaaaaa', party: 'time' };
  callback(null, payload);
})
```

[fork]: https://github.com/jcrugzz/fork

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