electron-notification

Easily send desktop notifications, can be used from main and renderer processes

Usage no npm install needed!

<script type="module">
  import electronNotification from 'https://cdn.skypack.dev/electron-notification';
</script>

README

electron-notification

JavaScript Style Guide

This module simplifies sending desktop notifications in Electron. It doesn't matter if you use it from the main or a renderer process and works exactly the same.

For the main process this uses the electron-main-notification package.

Usage

Pretty simple:

const notify = require('electron-notification')
notify('The title of the notification', {
  body: 'The body of the notification'
}, () => {
  console.log('Notification was clicked!')
})