trayballoon
Create a trayballoon on Windows
Last updated 5 years ago by sindresorhus .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install trayballoon 
SYNC missed versions from official npm registry.

trayballoon

Create a trayballoon on Windows

Install

$ npm install --save trayballoon

Usage

var trayballoon = require('trayballoon');

trayballoon({
	text: 'Unicorns & rainbows',
	icon: 'ponies.ico',
	timeout: 20000
}, function () {
	console.log('Trayballoon disappeared');
});

API

trayballoon(options, [callback])

options

text

Required
Type: string

The body text.

title

Type: string

The title text.

icon

Type: string

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

timeout

Type: number
Default: 5000

Time to show the balloon in milliseconds.

wait

Type: boolean
Default: false

Wait until the balloon disappear for the callback to be called.

Only has an effect if you supply a callback.

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

License

MIT © Sindre Sorhus

Current Tags

  • 1.0.4                                ...           latest (5 years ago)

4 Versions

  • 1.0.4                                ...           5 years ago
  • 1.0.3                                ...           5 years ago
  • 1.0.2                                ...           6 years ago
  • 1.0.0                                ...           6 years ago
Maintainers (1)
Downloads
Today 0
This Week 1
This Month 2
Last Day 1
Last Week 1
Last Month 8
Dependencies (4)
Dev Dependencies (1)

Copyright 2014 - 2016 © taobao.org |