https://github.com/curtiscde/tab-notifier
📫 JS Library for managing your browser title notifications
https://github.com/curtiscde/tab-notifier
document-title js-library
Last synced: 4 months ago
JSON representation
📫 JS Library for managing your browser title notifications
- Host: GitHub
- URL: https://github.com/curtiscde/tab-notifier
- Owner: curtiscde
- Created: 2019-06-27T06:30:16.000Z (about 6 years ago)
- Default Branch: master
- Last Pushed: 2023-03-19T09:32:45.000Z (over 2 years ago)
- Last Synced: 2025-02-07T14:13:58.420Z (5 months ago)
- Topics: document-title, js-library
- Language: JavaScript
- Homepage: https://www.npmjs.com/package/tab-notifier
- Size: 1.32 MB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 9
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Tab Notifier
![]()
[](https://coveralls.io/github/curtistimson/tab-notifier?branch=ci)
## 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
```