https://github.com/solarliner/node-libnotify-terminal
libnotify-terminal, ported to nodejs.
https://github.com/solarliner/node-libnotify-terminal
Last synced: about 1 year ago
JSON representation
libnotify-terminal, ported to nodejs.
- Host: GitHub
- URL: https://github.com/solarliner/node-libnotify-terminal
- Owner: SolarLiner
- License: mit
- Created: 2017-02-18T09:24:40.000Z (over 9 years ago)
- Default Branch: develop
- Last Pushed: 2017-08-08T15:05:13.000Z (almost 9 years ago)
- Last Synced: 2025-02-12T13:54:16.581Z (over 1 year ago)
- Language: TypeScript
- Size: 128 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# node-libnotify-terminal
[](https://raw.githubusercontent.com/SolarLiner/node-libnotify-terminal/master/LICENSE)

[](https://www.codacy.com/app/solarliner/node-libnotify-terminal?utm_source=github.com&utm_medium=referral&utm_content=SolarLiner/node-libnotify-terminal&utm_campaign=Badge_Grade)
[](https://www.codacy.com/app/solarliner/node-libnotify-terminal?utm_source=github.com&utm_medium=referral&utm_content=SolarLiner/node-libnotify-terminal&utm_campaign=Badge_Coverage)
[](https://travis-ci.org/SolarLiner/node-libnotify-terminal)
libnotify-terminal, ported to nodejs.
## What is libnotify-terminal ?
`libnotify-terminal` is a small program written in python that interacts with the Linux Desktop through the Freedesktop na nodeotifications specifications. You can look over at the repo in there: https://github.com/SolarLiner/libnotify-terminal
## What is node-libnotify-terminal ?
`node-libnotify-terminal` is a node module made to interact with those same notifications through `libnotify-terminal` as a child process. It is similar to `libnotify` in this way.
## Why should I use this package over the old one?
`libnotify` uses `notifysend` a program that fires a notification but does not allow you to do anything with it. `node-libnotify-terminal`, on the other hand, supports button and notification press callbacks which in turn allow the user to interact with your application in a whole new way on Linux WMs that support sending notifications (so all of them, basically).
## How simple is it?
Firing a simple notification, without callbacks, is as simple as this:
```typescript
import { Notification } from "node-libnotify-terminal";
Notification.fire("Application title", "Notification body", "Notification title");
```
Note that the body is before the title, as only the body is required to fire a notification.
More examples are available on the Wiki.