@statusbar/mpd
mpd "now playing" block for Statusbar.
Last updated 3 years ago by goto-bus-stop .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install @statusbar/mpd 
SYNC missed versions from official npm registry.

@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

Current Tags

  • 0.1.0                                ...           latest (3 years ago)

2 Versions

  • 0.1.0                                ...           3 years ago
  • 0.0.1                                ...           4 years ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 0
Dependencies (2)
Dev Dependencies (0)
None
Dependents (0)
None

Copyright 2014 - 2017 © taobao.org |