node package manager
It’s your turn. Help us improve JavaScript. Take the 2017 JavaScript Ecosystem Survey »

flash-document-title

flash-document-title

Flash a notification message in the tab title area.

If the tab is hidden, this module prepends the given argument before the current document title. Each second, it animates by prepending and removing a ! character. Once the tab is no longer hidden, the document title is reset.

screenshot

npm travis standard

Install

npm install flash-document-title

Usage

var flashDocumentTitle = require('flash-document-title')
 
flashDocumentTitle('💬 someone said something!')

License

Apache-2.0