0.1.0 • Published 7 years ago

@statusbar/mpd v0.1.0

Weekly downloads
1
License
MIT
Repository
github
Last release
7 years ago

@statusbar/mpd

An mpd "Now Playing" block for statusbar.

Usage

const mpd = require('@statusbar/mpd')

bar.use(nowplaying({
  format: '{artist} - {title}',

  // connection defaults:
  port: 6600,
  host: 'localhost',
  // but you can also use a domain socket:
  path: '/var/run/mpd.sock'
}))

Format

The format option takes a simple formatting string. Supported tags:

  • {artist} - The artist name. (the Artist meta field)
  • {album} - The album that this song is on.
  • {title} - The song title.
  • {track} - Track number of this song in the album.
  • {albumartist} - The Album Artist meta field.

License

MIT