doc-title

1.0.2 • Public • Published

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

Readme

Keywords

Package Sidebar

Install

npm i doc-title

Weekly Downloads

1

Version

1.0.2

License

MIT

Last publish

Collaborators

  • sakabako