electron-collection
Set of helper modules to build Electron applications
Last updated 3 years ago by yoshuawuyts .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install electron-collection 
SYNC missed versions from official npm registry.

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

Current Tags

  • 1.2.0                                ...           latest (3 years ago)

3 Versions

  • 1.2.0                                ...           3 years ago
  • 1.1.0                                ...           3 years ago
  • 1.0.0                                ...           3 years ago
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 0
Dev Dependencies (3)
Dependents (0)
None

Copyright 2014 - 2016 © taobao.org |