Have ideas to improve npm?Join in the discussion! »

electron-collection

1.2.0 • Public • Published

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

Install

npm i electron-collection

DownloadsWeekly Downloads

3

Version

1.2.0

License

MIT

Last publish

Collaborators

  • avatar
  • avatar