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
- Host: GitHub
- URL: https://github.com/condef5/notify-space
- Owner: condef5
- License: mit
- Created: 2019-05-28T15:18:07.000Z (about 7 years ago)
- Default Branch: master
- Last Pushed: 2022-12-09T04:14:45.000Z (over 3 years ago)
- Last Synced: 2025-11-17T14:40:30.988Z (7 months ago)
- Language: JavaScript
- Homepage: https://www.npmjs.com/package/notify-space
- Size: 1.27 MB
- Stars: 3
- Watchers: 0
- Forks: 0
- Open Issues: 12
-
Metadata Files:
- Readme: README.md
- License: LICENSE
- Code of conduct: CODE_OF_CONDUCT.md
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")
```