Skip to main content
Home

SwissKnife is a Deno module that allows you to do some useful tasks on Windows OS using NirCmd v2.86

This package works with Deno
This package works with Deno
JSR Score
94%
Published
a year ago (1.8.0)
function notification
notification(
title: string,
text: string,
icon?,
timeout?,
): Promise<number>

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 = 77

Icon number (from shell32.dll)

optional
timeout = 5000

Timeout in milliseconds to hide the notification

Return Type

the process exit code

New Ticket: Report package

Please provide a reason for reporting this package. We will review your report and take appropriate action.

Please review the JSR usage policy before submitting a report.

Add Package

deno add jsr:@fakoua/swiss-knife

Import symbol

import { notification } from "@fakoua/swiss-knife";
or

Import directly with a jsr specifier

import { notification } from "jsr:@fakoua/swiss-knife";