Skip to main content
Module

x/swissKnife/mod.ts>notification

Deno Swiss Knife tools
Latest
function notification
import { notification } from "https://deno.land/x/swissKnife@1.8/mod.ts";

Show window notification (Ballon)

Examples

Example 1

import * as swissKnife from "https://deno.land/x/swissKnife/mod.ts"
await swissKnife.notification("My Title", "Hello Notification", 77, 2000)

Parameters

title: string

Notification Title

text: string

Notification Text

optional
icon = [UNSUPPORTED]

Icon number (from shell32.dll)

optional
timeout = [UNSUPPORTED]

Timeout in milliseconds to hide the notification

Returns

Promise<number>

the process exit code