Debug node apps like a pro
JavaScript HTML
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
browser
renderer
.gitignore
CHANGELOG.md
LICENSE.md
README.md
package-lock.json
package.json

README.md

DeNode

DeNode is short for Debug Node, it's a tiny wrapper around Electron that lets you debug your Node apps using Chrome Dev Tools 🎉

Installation

npm install -g denode

Usage

denode
denode .
denode ./index.js
denode `which browserify` -r chalk main.js

To reload the app, simply press CTRL + R on Linux/Windows and CMD + R on Mac OSX.

Advanced Usage

DeNode 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

{
  "name": "my-cool-app",
  "electronMain": "./electron.js",
  "electronOptions": {
    // All of BrowserWindow options are accepted here
  },
  "denodeOptions": [
    "DENODE_INSECURE" // Ignore certificate errors
  ]
}

The electronOptions field accepts all of BrowserWindow options, if electronMain is present, it is used instead of main.

Screenshot

DeNode

License

DeNode is licensed under the terms of MIT License, see the LICENSE file for more info.