npm.io
1.2.3 • Published 7 years ago

notify-space

Licence
MIT
Version
1.2.3
Deps
0
Size
17 kB
Vulns
0
Weekly
0
Stars
3

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
  1. 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")

Keywords