0.4.0 • Published 5 years ago

tab-notifier v0.4.0

Weekly downloads
1
License
ISC
Repository
github
Last release
5 years ago

Tab Notifier

Usage

import TabNotifier from 'tab-notifier';

notify()

Prefixes the document title with a number

TabNotifier.notify(); // prefixes title with (1)
TabNotifier.notify(1); // prefixes title with (1)
TabNotifier.notify(2); // prefixes title with (2)

notifyMessage()

Updates the document title to a specific message and alternates every 1 second by default

TabNotifier.notifyMessage('New Message Received!');

Options:

TabNotifier.notifyMessage('New Message Received!', {
  intervalSpeed: 1000
});

reset()

Resets the title back to the original document title

TabNotifier.reset();

Development

npm start

Build

npm run build
0.4.0

5 years ago

0.3.0

5 years ago

0.2.0

5 years ago

0.1.0

5 years ago

0.0.0-dev.0

5 years ago