An open API service indexing awesome lists of open source software.

https://github.com/condef5/notify-space

Simple notifications for web apps
https://github.com/condef5/notify-space

Last synced: 3 months ago
JSON representation

Simple notifications for web apps

Awesome Lists containing this project

README

          

# Notify Space

Simple notifications for web applications

## Usage

1. First install the package with npm or Yarn.

```
# with yarn
yarn add notify-space
```

```
# or with npm
npm install notify-space
```

2. And here comes the fun part.

```
import notify from 'notify-space'

notify({
text: "See you space cowboy ...", // Message to be displayed
duration: 4000, // Notificacion duration, it's optional, by default is `2000`
theme: 'dark' // Theme available => ['light', 'dark', 'success'], by default is `dark`
})

// or just

notify("The space is wonderful")

```