UNPKG

441 BMarkdownView Raw
1
2# run examples in electron
3
4```
5npm install electron-prebuilt electro -g
6electro examples/simple.js
7```
8[electro](https://github.com/dominictarr/electro) is my electron wrapper
9that 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```
15npm install browserify indexhtmlify -g
16
17browserify examples/simple.js | indexhtmlify > index.html
18```
19then open that in your prefured web browser!