# mpdlib

> Promise based client for interacting with a mpd daemon

Latest version **1.0.0** (published 2015-12-05) · MIT license · 0 weekly downloads

## Install

```sh
npm install mpdlib
pnpm add mpdlib
yarn add mpdlib
bun add mpdlib
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.0 |
| Published | 2015-12-05 |
| First published | 2015-12-05 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | Daniel Mills |
| Maintainers | dmamills |

## Links

- npm: https://www.npmjs.com/package/mpdlib
- npm.io page: https://npm.io/package/mpdlib

## Recent versions

- 1.0.0 (latest) — 2015-12-05

## README

# mpdlib

A bit of an experiment in using es6 class/promises to interact with the [mpd protocol](http://www.musicpd.org/doc/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"
    });
});

```

---
_Source: https://npm.io/package/mpdlib · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
