JSPM

  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 1
  • Score
    100M100P100Q46046F
  • License MIT

Spawn processes in the browser, the node way

Package Exports

  • sandbox-spawner

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (sandbox-spawner) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

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