1.0.3 • Published 6 years ago
webtnf v1.0.3
webtnf v1.0.3
webtnf is a very simplify browser Notification Function package
Installation
Using npm:
$ npm i webtnf
Usage method:
const webtnf = require("webtnf");
//notification tip's title
const title = 'hi,baby';
//other options
const options ={
body: 'you have a new message!',
icon: '../logo.png',
tag: 'tag',
renotify: true
}
//request user:
webtnf('authorization');
// send notificotion:
webtnf('', title, options);