electron-squirrel-startup
Default Squirrel.Windows event handler for your Electron apps.
Last updated 2 years ago by addaleax .
Apache-2.0 · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install electron-squirrel-startup 
SYNC missed versions from official npm registry.

electron-squirrel-startup travis npm appveyor

Default Squirrel.Windows event handler for your Electron apps.

Installation

npm i electron-squirrel-startup

Usage

To handle the most common commands, such as managing desktop shortcuts, just add the following to the top of your main.js and you're good to go:

if(require('electron-squirrel-startup')) return;

For Babel/ES6:

const { app } = require('electron');
// ....
if(require('electron-squirrel-startup')) app.quit();

Read More

Handling Squirrel Events

Squirrel.Windows Commands

License

Apache 2.0

Current Tags

  • 1.0.1                                ...           latest (2 years ago)

9 Versions

  • 1.0.1                                ...           2 years ago
  • 1.0.0                                ...           10 years ago
  • 0.2.0                                ...           10 years ago
  • 0.1.4                                ...           11 years ago
  • 0.1.3                                ...           11 years ago
  • 0.1.2                                ...           11 years ago
  • 0.0.1                                ...           11 years ago
  • 0.1.1                                ...           11 years ago
  • 0.1.0                                ...           11 years ago

Copyright 2013 - present © cnpmjs.org | Home |