mpdlib

1.0.0 • Public • Published

mpdlib

A bit of an experiment in using es6 class/promises to interact with the mpd protocol

usage

requires node v5.0.0+

const mpdConnection = require('mpdlib');
const port = process.env.MPD_PORT || 6600;
const host = process.env.MPD_HOST || 'localhost';
const password = 'topsecretmusicpassword'

mpdConnection(host, port, password).then(conn => {
    conn.command('listall').then(res => {
        console.log(d.toString()); // "OK"
    });
});

Versions

Current Tags

VersionDownloads (Last 7 Days)Tag
1.0.00latest

Version History

VersionDownloads (Last 7 Days)Published
1.0.00

Package Sidebar

Install

npm i mpdlib

Weekly Downloads

0

Version

1.0.0

License

MIT

Last publish

Collaborators

  • dmamills