Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

electron-runner

Package Overview
Dependencies
Maintainers
1
Versions
12
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

electron-runner

Enables for running NodeJS apps in Electron.

  • 0.0.9
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
0
decreased by-100%
Maintainers
1
Weekly downloads
 
Created
Source

#electron-runner

Simple wrapper around electron package. Built on electron-quick-start boilerplate, but it hides boilerplate code. It's meant to enable run JavaScript code in Electron without writing any electron specific code. You can run for example NodeJS application for purpose of debugging (using chrome dev tools, for example).

Note: this package is running code in renderer Electron process so if you need to access main process you should rather use other Electron boilerplate.

It allows you to specify simple configuration file, for example:

module.exports = {
     // arbitrary html file which will be your entry point.
     // You should include/require your JavaScript files from this file by using `script` tags or `require` function.
     // you can also use ---generate option for autogenerating *.html file which will include your NodeJS script.
    url:  'file://' + require('path').join(__dirname, 'hello.html'),

    menu: [/*data for menu items in format understood by Electron */], // optional

    openDevTools: true // optional

};

usage:

npm install --save-dev electron-runner
node_modules/.bin/electron-runner PATH_FOR_CONFIG_FILE

generate HTML containers (it will output html code into standard output)

node_modules/.bin/electron-runner --generate PATH_FOR_JAVASCRIPT_FILE

for example

1. node_modules/.bin/electron-runner --generate index.js > index.html
2. ( edit url property in your config file to point at index.html)
3. node_modules/.bin/electron-runner YOUR_CONFIG.js

FAQs

Package last updated on 24 Jan 2017

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc