sandbox-scenario

0.0.13 • Public • Published

sandbox-scenario

Demonstrate JavaScriopt projects on the browser. Usage here, live demo here. Command line interface:

Context :: object

  • type :: string
  • path :: string
  • options :: sandbox-editor.Options

require("sandbox-scenario")(spawn, parents, children, callback)

  • spawn :: sandbox-scenario.Context
  • parents :: [sandbox-scenario.Context]
  • children :: [sandbox-scenario.Context]
  • callback(error, script)
    • error :: Error
    • script :: sring

spawn = Spawn(parent1, parent2, ...)

  • parent1 :: string
  • parent2 :: string
  • child = spawn(path, script, argv)
    • path :: string
    • script :: string
    • argv :: [string]
    • child :: sandbox-spawn.Child | Worker

Package Sidebar

Install

npm i sandbox-scenario

Weekly Downloads

9

Version

0.0.13

License

MIT

Unpacked Size

7.9 kB

Total Files

6

Last publish

Collaborators

  • lachrist