now-playing

1.0.1 • Public • Published

Now Playing

Sets the HTML document title to the current song. The song should be an object with the properties:

{
  'title': 'Song title',
  'artist': 'Some artist'
}

Connects to PlayQueue.

Install

npm install now-playing

Usage

  import {NowPlaying} from 'now-playing';
    
  const nowPlaying = new NowPlaying({
    'pageTitle': 'Now Playing Example',
    'playQueue': playQueue
  });

View the example to see how it is used.

Readme

Keywords

none

Package Sidebar

Install

npm i now-playing

Weekly Downloads

6

Version

1.0.1

License

none

Unpacked Size

8.7 kB

Total Files

5

Last publish

Collaborators

  • dankantor