Share your code. npm Orgs help your team discover, share, and reuse code. Create a free org »

flash-document-title

1.0.0 • Public • Published

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

install

npm i flash-document-title

Downloadsweekly downloads

97

version

1.0.0

license

Apache-2.0

homepage

github.com

repository

Gitgithub

last publish

collaborators

  • avatar