flash-document-title

flash a notification message in the tab title area

Downloads in past

Stats

StarsIssuesVersionUpdatedCreatedSize
flash-document-title
301.0.05 years ago5 years agoMinified + gzip package size for flash-document-title in KB

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.
screenshot
!npmnpm-imagenpm-url !travistravis-imagetravis-url !standardstandard-imagestandard-url

Install

npm install flash-document-title

Usage

var flashDocumentTitle = require('flash-document-title')

flashDocumentTitle('💬 someone said something!')

License

Apache-2.0