1.0.1 • Published 9 years ago

native-notifications v1.0.1

Weekly downloads
-
License
WTFPL
Repository
github
Last release
9 years ago

native-notifications

native-notifications use browsers native notifications API.

npm i -S native-notifications

Usage

const
    NativeNotification = require('native-notification'),
    options = {};
let notif;

notif = new NativeNotification('Hi me !', options);

Options

Options are described here: https://developer.mozilla.org/fr/docs/Web/API/notification#Paramètres

Explanations

Based on native API Notification: https://developer.mozilla.org/fr/docs/Web/API/notification

Inspired by the source described from MDN: https://developer.mozilla.org/en-US/docs/Web/API/Notifications_API/Using_the_Notifications_API

License

WTPFL. Do what you want with this. That's open source.

1.0.1

9 years ago

1.0.0

9 years ago