Minimalist toast notifications
$ npm install alerted
const alerted = require('alerted');
alerted({
text: 'This is a message',
position: 'bottom'
});
Type: string
Some text to be displayed.
Type: string
An optional heading.
Type: int
Default: 3000
How long the notification should be displayed.
Type: string
Default: top
Specify the notification's position(either top
or bottom
)
Type: string
, array
A single string or an array of string representing additional classes.
MIT Β© Tobias Herber