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

https://github.com/frantallukas10/os-notification


https://github.com/frantallukas10/os-notification

node-notification notification os terminal-notification

Last synced: about 2 months ago
JSON representation

Awesome Lists containing this project

README

          

# os-notification
Easily create notify message in your defined time. It supports apple, windows and linux operation systems. It has support for MacOS, Windows and Linux.

![NPM](https://img.shields.io/npm/l/os-notification)
![npm](https://img.shields.io/npm/v/os-notification)
![npm](https://img.shields.io/npm/dt/os-notification)
![GitHub code size in bytes](https://img.shields.io/github/languages/code-size/frantallukas10/os-notification)
![GitHub repo size](https://img.shields.io/github/repo-size/frantallukas10/os-notification)
![Coverage badge](https://img.shields.io/badge/Coverage-100%25-brightgreen.svg)


## Installation
```
npm i os-notification -g
```

## Example running:
```
notify message="Example message"
```
default execute time is 0, you can define time when your message has to show, example 10sec like this:
```
notify message="Example message" time="10000"
```

## You can use this package for your next solution like this:
```js
const { notify } = require('os-notification')
notify(
"Example message", // message,
`${10 * 1000}` // execute time 10sec
)
```

## Expected incorrect result will be show in your console like this:
![Alt 1](./images/1.png)

## Expected correct result will show your message:
![Alt 2](./images/2.png)