Repository
Current version released
3 years ago
Dependencies
std
deno-notifier.ts
deno-notifier.ts is a Deno module for sending desktop notifications. It is written in pure TypeScript.
This module is still highly experimental! In particular, it has not been fully tested on Windows and Mac OS.
Usage
import { notify } from "https://deno.land/x/notifier/mod.ts";
await notify("This is a title", "This is a message");
This module also provides API inspired by WHATWGâs Notifications API (WIP).
import { Notification } from "https://deno.land/x/notifier/whatwg/mod.ts";
new Notification("Hello", {
body: "World",
icon: "/path/to/icon.png",
});
Requirements
Linux
Youâll need to install one of the following:
notify-send
Mac OS X
Youâll need to install one of the following:
osascript
Windows
Youâll need to install one of the following: