@@ -49,14 +49,18 @@ Write code to stdin and receive console output on stdout.
49
49
Usage: browser-run [OPTIONS]
50
50
51
51
Options:
52
- --browser, -b Browser to use. Always available: electron. Available if installed: chrome, firefox, ie, safari [default: " electron" ]
53
- --port Starts listening on that port and waits for you to open a browser
54
- --static Serve static assets from this directory
55
- --mock Path to code to handle requests for mocking a dynamic back-end
56
- --input Input type. Defaults to ' javascript' , can be set to ' html' .
57
- --node Enable nodejs apis in electron
58
- --basedir Set this if you need to require node modules in node mode
59
- --help Print help
52
+ --version Show version number [boolean]
53
+ -b, --browser Browser to use. Always available: electron. Available if
54
+ installed: chrome, firefox, ie, safari [default: " electron" ]
55
+ --sandbox Enable electron sandbox [boolean] [default: true]
56
+ --basedir Set this if you need to require node modules in node mode
57
+ -h, --help Print help [boolean]
58
+ -p, --port Starts listening on that port and waits for you to open a
59
+ browser
60
+ -s, --static Serve static assets from this directory
61
+ -m, --mock Path to code to handle requests for mocking a dynamic back-end
62
+ -i, --input Input type. Defaults to ' javascript' , can be set to ' html' .
63
+ -n, --node Enable nodejs apis in electron
60
64
` ` `
61
65
62
66
# # Custom html file
@@ -97,6 +101,7 @@ Returns a duplex stream and starts a webserver.
97
101
* ` mock` : Path to code to handle requests for mocking a dynamic back-end
98
102
* ` input` : Input type. Defaults to ` javascript` , can be set to ` html` .
99
103
* ` node` : Enable nodejs integration in electron
104
+ * ` sandbox` : Enable electron sandbox. Default: ` true` .
100
105
* ` basedir` : Set this if you need to require node modules in ` node` mode
101
106
102
107
If only an empty string is written to it, an error will be thrown as there is nothing to execute.
0 commit comments