sandbox-spawner
v0.0.20
Published
Spawn processes in the browser, the node way
Downloads
27
Readme
sandbox-spawner
NPM module to spawn node-like processes in the browser Usage here, live demo here.
spawner = require("sandbox-spawner")(container, sandbox)
container :: dom.Element
sandbox :: sandbox-editor.Sandbox
spawner(spawn)
child = spawn(path, script, argv)
path :: string
script :: string
argv :: [string]
child :: sandbox-spawner.Child | Worker
Child :: events.EventEmitter
stdin :: stream.Writable
stdout :: stream.Readable
stderr :: stream.Redable
child.kill(signal)
signal :: string
- Event
exit
code :: number
signal :: string