UNPKG

1.22 kBMarkdownView Raw
1DeNode
2======
3
4DeNode is short for Debug Node, it's a tiny wrapper around [Electron][1] that lets you debug your [Node][2] apps using Chrome Dev Tools :tada:
5
6## Installation
7```sh
8npm install -g denode
9```
10
11## Usage
12
13```sh
14denode
15denode .
16denode ./index.js
17denode `which browserify` -r chalk main.js
18```
19
20To reload the app, simply press CTRL + R on Linux/Windows and CMD + R on Mac OSX.
21
22## Advanced Usage
23
24DeNode tries to load options from the local `package.json` file, you can suppress this behavior by doing `--ignore-local`. Here are the magic fields it understands
25
26```js
27{
28 "name": "my-cool-app",
29 "electronMain": "./electron.js",
30 "electronOptions": {
31 // All of BrowserWindow options are accepted here
32 }
33}
34```
35The `electronOptions` field accepts all of [`BrowserWindow`][3] options, if `electronMain` is present, it is used instead of `main`.
36
37## Screenshot
38
39<img alt="DeNode" src="https://cloud.githubusercontent.com/assets/4278113/14579761/20e2a9a2-036b-11e6-8bc7-fba7cda9a026.png">
40
41## License
42
43DeNode is licensed under the terms of MIT License, see the LICENSE file for more info.
44
45[1]:http://electron.atom.io/
46[2]:http://nodejs.org/
47[3]:http://electron.atom.io/docs/latest/api/browser-window