status-icon

1.2.0 • Public • Published

status-icon

Easy way of adding tray icon telling you what's the build status

Usage

npm install --save-dev status-icon
var statusIcon = require('status-icon')();
statusIcon.set('my-icon.png');

How to use

Use it with browserify or any of your other build systems:

...
function bundle() {
  statusIcon.progress();
  var stream = bundler.bundle();
  stream.on('error', function () {
    statusIcon.error();
  });
  stream.(...).on('finish', function () {
    statusIcon.ok();
  });
}

You can also use your custom images with:

statusIcon.set('my-icon.png');

Readme

Keywords

Package Sidebar

Install

npm i status-icon

Weekly Downloads

14

Version

1.2.0

License

MIT

Unpacked Size

5.07 kB

Total Files

9

Last publish

Collaborators

  • neojski