Socket
Book a DemoInstallSign in
Socket

trayballoon

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

trayballoon

Create a trayballoon on Windows

latest
Source
npmnpm
Version
2.0.0
Version published
Maintainers
1
Created
Source

trayballoon

Create a trayballoon on Windows

Install

$ npm install trayballoon

Usage

import trayballoon from 'trayballoon';

await trayballoon({
	text: 'Unicorns & rainbows',
	icon: 'ponies.ico',
	timeout: 20000
});

console.log('Trayballoon disappeared');

API

trayballoon(options)

Return a promise that resolves when the trayballon disappears.

options

Type: object

text

Required
Type: string

The body text.

title

Type: string

The title text.

icon

Type: string

The path to a .ico file or a .exe/.dll file with icon resource index (eg: shell32.dll,-154).

timeout

Type: number
Default: 5000

The duration to show the balloon in milliseconds.

CLI

$ npm install --global trayballoon
$ trayballoon --help

  Usage
    trayballoon <text>
    echo <text> | trayballoon

  Example
    trayballoon unicorns --title rainbows --icon ponies.ico

  Options
    --title    Title of the balloon
    --icon     Path to a .ico file or .exe/.dll file with icon resource index
    --timeout  Time to show the balloon in milliseconds
    --wait     Wait for the balloon to disappear

Keywords

cli-app

FAQs

Package last updated on 17 Aug 2021

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts