<commit_before># 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?

That will be discussed once I actually come around and type some code.
<commit_msg>Updated README with a simple code snippet<commit_after># 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.
{'fraction_non_alphanumeric': 0.061708860759493674, 'fraction_numerical': 0.0, 'mean_word_length': 4.840646651270208, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 2, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2026821', 'n_tokens_mistral': 657, 'n_tokens_neox': 620, 'n_words': 346}