sandbox-scenario
Version:
Demonstrate JavaScript projects on the browser
31 lines (23 loc) • 810 B
Markdown
# sandbox-scenario
Demonstrate JavaScriopt projects on the browser.
Usage [here](/demo), live demo [here](https://cdn.rawgit.com/lachrist/sandbox-scenario/398a537b/demo/index.html).
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`