Skip to content
This repository was archived by the owner on Feb 4, 2020. It is now read-only.

MathRobin/native-notifications

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

native-notifications use browsers native notifications API.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published