1.0.2 • Published 8 years ago

doc-title v1.0.2

Weekly downloads
64
License
MIT
Repository
github
Last release
8 years ago

Titler

This compact library helps you change the title of the document and flash notification messages.

Basic Usage

var title = require('doc-title');

title.setApp('AppName'); // title is 'AppName'
title.setPage('Home'); // title is 'AppName | Home'
title.setModifier('On The Range'); // title is 'AppName | Home | On The Range'
title.setSeparator(': '); // title is 'AppName: Home: On The Range'

title.flash('Where the deer and the buffalo roam'); // title is 'Where the deer and the buffalo roam' for 5 seconds, then resets