fork-process-plugin

0.0.1 • Public • Published

Fork process plugin for wire.js

Installation

npm i fork-process-plugin

Install wire from git://github.com/cujojs/wire.git#0.10.11

Usage

import wire from 'wire';
import forkProcessPlugin from 'fork-process-plugin';

const spec = {
    $plugins: [
        forkProcessPlugin
    ],

    deferredFork: {
        createDeferredFork: {
            path: __dirname + '/../forks/one/index.js'
        }
    },

    forkedProcess: {
        create: {
            module: function(run) {
                return run();
            },
            args: [
                {$ref: 'deferredFork'}
            ]
        }
    }
}

wire(spec);

Readme

Keywords

none

Package Sidebar

Install

npm i fork-process-plugin

Weekly Downloads

3

Version

0.0.1

License

ISC

Unpacked Size

4.17 kB

Total Files

5

Last publish

Collaborators

  • designeng