1 |
|
2 | # run examples in electron
|
3 |
|
4 | ```
|
5 | npm install electron-prebuilt electro -g
|
6 | electro examples/simple.js
|
7 | ```
|
8 | [electro](https://github.com/dominictarr/electro) is my electron wrapper
|
9 | that lets you just run a single js file and pipe to it via stdio.
|
10 |
|
11 |
|
12 | # run examples in a browser via browserify
|
13 |
|
14 | ```
|
15 | npm install browserify indexhtmlify -g
|
16 |
|
17 | browserify examples/simple.js | indexhtmlify > index.html
|
18 | ```
|
19 | then open that in your prefured web browser!
|