node package manager
Share your code. npm Orgs help your team discover, share, and reuse code. Create a free org ยป

sandbox-spawner

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