Skip to content

herber/alerted

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

12 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

Alerted

Minimalist toast notifications

Install

$ npm install alerted

Usage

const alerted = require('alerted');

alerted({
  text: 'This is a message',
  position: 'bottom'
});

API

alerted([options])

text

Type: string

Some text to be displayed.

heading

Type: string

An optional heading.

time

Type: int Default: 3000

How long the notification should be displayed.

position

Type: string Default: top

Specify the notification's position(either top or bottom)

classes

Type: string, array

A single string or an array of string representing additional classes.

License

MIT Β© Tobias Herber

About

πŸš¨πŸ”” Minimalist toast notifications

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published