flash-document-title
v1.0.0
Published
flash a notification message in the tab title area
Downloads
2,472
Maintainers
Readme
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.
Install
npm install flash-document-title
Usage
var flashDocumentTitle = require('flash-document-title')
flashDocumentTitle('💬 someone said something!')