Socket
Book a DemoInstallSign in
Socket

electron-collection

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

electron-collection

Set of helper modules to build Electron applications

latest
Source
npmnpm
Version
1.2.0
Version published
Maintainers
1
Created
Source

electron-collection stability

npm version build status downloads js-standard-style

Set of helper modules to build Electron applications.

API

debug([opts])

Adds useful debug features to your Electron app. See: electron-debug.

menu = defaultMenu(app, shell)

Create a default menu. See: electron-default-menu.

var defaultMenu = require('electron-collection/default-menu')
var { Menu, app, shell } = require('electron')

var menu = defaultMenu(app, shell)
Menu.setApplicationMenu(Menu.buildFromTemplate(menu))

firstRun([opts])

Check if it's the first time the process is run. See: first-run.

fixPath()

Fix the $PATH on macOS when run from a GUI app. See: fix-path.

isDev()

Check if Electron is running in Development. See: electron-is-dev.

move()

Automatically move Electron apps to the Applications directory. See: electron-lets-move.

rootPath

Determine the root path to your project. Read-only value. See: app-root-path.

resolvePath(resource)

Determine the path of a resource relative to the application root. app-root-path.

shouldStart = squirrelStartup()

Default Squirrel.Windows event handler for your Electron apps. Returns a boolean. See: electron-squirrel-startup.

License

MIT

Keywords

electron

FAQs

Package last updated on 18 Aug 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