1.0.5 • Published 1 year ago
notify-pack v1.0.5
notify-pack
How to call notification:
- notify();
3 parameters are available:
- message (string)
- type (select: success, info, error)
- duration (float)
Usage Example:
const notify = require('notify-pack');
notify('Hello World', 'success', 2);
Don't forget to import font-awesome:
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.5.2/css/all.min.css" integrity="sha512-SnH5WK+bZxgPHs44uWIX+LLJAJ9/2PkPKZ5QiAj6Ta86w+fsb2TkcmfRyVX3pBnMFcV7oQPJkl9QevSCWr3W6A==" crossorigin="anonymous" referrerpolicy="no-referrer" />