1.0.2 • Published 5 years ago

@zip-software/electron-app-handler v1.0.2

Weekly downloads
1
License
MIT
Repository
github
Last release
5 years ago

Electron App Handler

Electron App Handler is a simple wrapper for Electron applications to manage event handling in modern apps.

Prerequisites

  • nodejs
  • npm

Installing

npm install

after that run the compilation via

npm run start

or build the package via

npm run build

Basic usage

import ElectronAppHandler from '@zip-software/electron-app-handler';

// create new instance
const ElectronHandler = new ElectronAppHandler();

// bind events on the Electron ipcRenderer
ElectronHandler.addEvent('change-theme', (e, state) => console.log('Current theme', e))
ElectronHandler.addEvent('say-hello', (e, message) => alert(message))

Versioning

We use SemVer for versioning. For the versions available, see the tags on this repository.

Authors

  • Dominik Biedebach - Initial work - bdbch

See also the list of contributors who participated in this project.

License

This project is licensed under the MIT License - see the LICENSE.md file for details