{"_id":"mpd","_rev":"39-4af173fdb2ba12c5798b735bdf96edd7","name":"mpd","description":"music player daemon client","dist-tags":{"latest":"1.3.0"},"versions":{"0.0.1":{"name":"mpd","version":"0.0.1","description":"javascript interface to music player daemon that works in node.js and the browser","main":"lib/mpd.js","engines":{"node":"~0.8.0"},"scripts":{"dev":"npm install && coco -wco lib/ src/","build":"npm install && coco -co lib/ src/","clean":"rm -rf lib/"},"repository":{"type":"git","url":"git@github.com:superjoe30/node-mpd.git"},"keywords":["mpd","music","player","daemon"],"author":{"name":"Andrew Kelley"},"license":"BSD","devDependencies":{"coco":"~0.8.0"},"_id":"mpd@0.0.1","dist":{"shasum":"187e41e01c0e7efb234910a3ae62bd5c9b35a8e5","tarball":"https://registry.npmjs.org/mpd/-/mpd-0.0.1.tgz","integrity":"sha512-lsyCPU/IspvBM2UOgPZzxWSiExyhzKzHK3lDFetI5LThojTZyGhULeA4G0OcUW1jo/w3w0yHGsmQz+c0Xk2Aqg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIGw4weO7BUXJsvYEYTbRfBBV9N0rgLJf9KoxRnjzx0tBAiEA8LTegz/eABfsP6/u3QhIzp2gtdDQe9tkHqElqtvJr/0="}]},"maintainers":[{"name":"superjoe","email":"superjoe30@gmail.com"}]},"0.2.0":{"name":"mpd","version":"0.2.0","description":"javascript interface to music player daemon that works in node.js and the browser","main":"lib/mpd.js","engines":{"node":"~0.8.0"},"scripts":{"dev":"npm install && coco -wco lib/ src/","build":"npm install && coco -co lib/ src/","clean":"rm -rf lib/"},"repository":{"type":"git","url":"git@github.com:superjoe30/node-mpd.git"},"keywords":["mpd","music","player","daemon"],"author":{"name":"Andrew Kelley"},"license":"BSD","devDependencies":{"coco":"~0.8.0"},"_id":"mpd@0.2.0","dist":{"shasum":"fedf740f2f85c905b741d0223d20cdc8e6f65504","tarball":"https://registry.npmjs.org/mpd/-/mpd-0.2.0.tgz","integrity":"sha512-ZY366x1AdVafNdAt197MZnUMf2e8wPjRwH6/Q1zHLb6Uw0nee0AfbS+L7AMB6vMp/68/JT/ChlR9utjRmpPTbw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDsILkJfZIQL64BVHfgssBDto+JmaTQ9lHB+ou++7DhGAIgU0hbJMEvde9KANKnJ0vQtrauMIoHThv4iIDDYwTdDQY="}]},"maintainers":[{"name":"superjoe","email":"superjoe30@gmail.com"}]},"0.3.0":{"name":"mpd","version":"0.3.0","description":"javascript interface to music player daemon that works in node.js and the browser","main":"lib/mpd.js","engines":{"node":"~0.8.0"},"scripts":{"dev":"npm install && coco -wco lib/ src/","build":"npm install && coco -co lib/ src/","clean":"rm -rf lib/"},"repository":{"type":"git","url":"git@github.com:superjoe30/node-mpd.git"},"keywords":["mpd","music","player","daemon"],"author":{"name":"Andrew Kelley"},"license":"BSD","devDependencies":{"coco":"~0.8.0"},"_id":"mpd@0.3.0","dist":{"shasum":"7068040fe8c222358eb134f28a28c428a16d64d9","tarball":"https://registry.npmjs.org/mpd/-/mpd-0.3.0.tgz","integrity":"sha512-uSIn5Ucz7N9/JpONP3+1XP0+Rli3v0la846wUy7WNgMRKRmcmnSzPgCt1CbH0CKWm2ULwKpCRew1OiKPOVxNzw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIFhw8h65m2TT/SD21+UIyQ253IJRnzDqaRmiM2sm6yRwAiBA2h3WGyFhw8eVsLrKq0oCK+RswPwuw9BFtSfDWtQNOw=="}]},"maintainers":[{"name":"superjoe","email":"superjoe30@gmail.com"}]},"0.3.1":{"name":"mpd","version":"0.3.1","description":"javascript interface to music player daemon that works in node.js and the browser","main":"lib/mpd.js","engines":{"node":"~0.8.0"},"scripts":{"dev":"npm install && coco -wco lib/ src/","build":"npm install && coco -co lib/ src/","clean":"rm -rf lib/"},"repository":{"type":"git","url":"git@github.com:superjoe30/node-mpd.git"},"keywords":["mpd","music","player","daemon"],"author":{"name":"Andrew Kelley"},"license":"BSD","devDependencies":{"coco":"~0.8.0"},"_id":"mpd@0.3.1","dist":{"shasum":"2f40fb0b3bb7169c4468023b21a62bd681e979fc","tarball":"https://registry.npmjs.org/mpd/-/mpd-0.3.1.tgz","integrity":"sha512-EUVdaxVxvXIlRWa/lwZzDPXpfr0eVurP9l/d4xuCljJnLjHhGp7AOj6OXrZT4pXjLnBWVLbhoT+5fKzadNJ6yA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDpxoe+2UrNXkE/KmjU8B5ogLhtAFOXDkhhPYdJb5RhQgIhAJ8vUXDA/KW0Qzoxey5q+5xW2iOK6aLHXiHTmUZ7uIJa"}]},"maintainers":[{"name":"superjoe","email":"superjoe30@gmail.com"}]},"0.3.2":{"name":"mpd","version":"0.3.2","description":"javascript interface to music player daemon that works in node.js and the browser","main":"lib/mpd.js","engines":{"node":"~0.8.0"},"scripts":{"dev":"npm install && coco -wco lib/ src/","build":"npm install && coco -co lib/ src/","clean":"rm -rf lib/"},"repository":{"type":"git","url":"git@github.com:superjoe30/node-mpd.git"},"keywords":["mpd","music","player","daemon"],"author":{"name":"Andrew Kelley"},"license":"BSD","devDependencies":{"coco":"~0.8.0"},"_id":"mpd@0.3.2","dist":{"shasum":"9dfaa4efa1be01dcbe2dc12fae355469746b6e2c","tarball":"https://registry.npmjs.org/mpd/-/mpd-0.3.2.tgz","integrity":"sha512-mplkQXMg1zH1YbsxR4QM1edQIv+wgjuRt2EqXttPUfSyExX1W2GQ3A9OOvYWRnO/9vKx87y/Z8bBEXcRABig2w==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCacP6bOf5EbZo/dF6SL64y2uRq61+yUfse5Lzf9lrSzwIhAOXDxOqJyzKE6YnGHhnUNMWVYLgeCBnABlvh/oA0c/6r"}]},"maintainers":[{"name":"superjoe","email":"superjoe30@gmail.com"}]},"0.3.3":{"name":"mpd","version":"0.3.3","description":"javascript interface to music player daemon that works in node.js and the browser","main":"lib/mpd.js","engines":{"node":"~0.8.0"},"scripts":{"dev":"npm install && coco -wco lib/ src/","build":"npm install && coco -co lib/ src/","clean":"rm -rf lib/"},"repository":{"type":"git","url":"git@github.com:superjoe30/node-mpd.git"},"keywords":["mpd","music","player","daemon"],"author":{"name":"Andrew Kelley"},"license":"BSD","devDependencies":{"coco":"~0.8.0"},"_id":"mpd@0.3.3","dist":{"shasum":"5ff50a8c47211743558836a5b919b1bb22edf5ab","tarball":"https://registry.npmjs.org/mpd/-/mpd-0.3.3.tgz","integrity":"sha512-cJLYpXprsqz9yYLS65JtypKkPBg1Q/8O4nAVLH9cKwNZqKVe8m831L4zMSdn+MhXuWMdsPUb1MdpMiAUb74ivQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCydXgDyR1yHib0lGVJjMmCbec7PIBuD7Msp2BMWKVweQIhAJ6r7p3FocNg8G6xMu7H5UuF7gLa540OtVEJmHo+04yP"}]},"maintainers":[{"name":"superjoe","email":"superjoe30@gmail.com"}]},"1.0.0":{"name":"mpd","version":"1.0.0","description":"music player daemon client","main":"index.js","engines":{"node":">=0.8.0"},"repository":{"type":"git","url":"git@github.com:superjoe30/mpd.js.git"},"keywords":["mpd","music","player","daemon","client","protocol"],"author":{"name":"Andrew Kelley","email":"superjoe30@gmail.com"},"license":"BSD","_id":"mpd@1.0.0","dist":{"shasum":"baaf418f08523bc7164b22c22b3bbbb7ab614cfb","tarball":"https://registry.npmjs.org/mpd/-/mpd-1.0.0.tgz","integrity":"sha512-E/3+vTEjqncNmH/na2FIdg2v5PLsC2y2tL9rqcNl+cI7VKHBGxY/iEHqBpuPguqdM11qNUc9AdYfXhGAQDz16g==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCICjUDfet1oFJJNu8S4zv5GV04CfZZyq+KfDEHESG24knAiAuvQhZV0+h+wH3hbYs4LOJ2r9RNpWhVs3JgEpYeIN71Q=="}]},"_from":".","_npmVersion":"1.2.15","_npmUser":{"name":"superjoe","email":"superjoe30@gmail.com"},"maintainers":[{"name":"superjoe","email":"superjoe30@gmail.com"}]},"1.0.1":{"name":"mpd","version":"1.0.1","description":"music player daemon client","main":"index.js","engines":{"node":">=0.8.0"},"repository":{"type":"git","url":"git@github.com:superjoe30/mpd.js.git"},"keywords":["mpd","music","player","daemon","client","protocol"],"author":{"name":"Andrew Kelley","email":"superjoe30@gmail.com"},"license":"BSD","_id":"mpd@1.0.1","dist":{"shasum":"7e32d59500d5510150c6ee50e7b23d2cbc6e43e3","tarball":"https://registry.npmjs.org/mpd/-/mpd-1.0.1.tgz","integrity":"sha512-nhy1KMMel8EyqsBRguPC0pX8D+s0p78jKo5moWxl5JFfaNOpzf+H0hc5BVEXPC4wZJLENtZ2rqaIkDpD2cpTnQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIDYo9PNl1EjwAZm4ixXRI+TwUXMh/KTpkcwlWVM3/e1/AiBtCHAjNl1jVih/mfhKPsvkxee1YK5qZx0zep+sCTYQnA=="}]},"_from":".","_npmVersion":"1.2.18","_npmUser":{"name":"superjoe","email":"superjoe30@gmail.com"},"maintainers":[{"name":"superjoe","email":"superjoe30@gmail.com"}]},"1.0.2":{"name":"mpd","version":"1.0.2","description":"music player daemon client","main":"index.js","engines":{"node":">=0.8.0"},"repository":{"type":"git","url":"git@github.com:superjoe30/mpd.js.git"},"keywords":["mpd","music","player","daemon","client","protocol"],"author":{"name":"Andrew Kelley","email":"superjoe30@gmail.com"},"license":"BSD","bugs":{"url":"https://github.com/superjoe30/mpd.js/issues"},"_id":"mpd@1.0.2","dist":{"shasum":"ac0efd73fadf54408454dcac2e9676195af69c7b","tarball":"https://registry.npmjs.org/mpd/-/mpd-1.0.2.tgz","integrity":"sha512-EGF3oV/qd02FB/Evd+u8RAc3LwBkMu8NbxTV266nKhjSy/UKGmqBXO/tFAEtIpln7ZrY8VvfZJuXu/tvWS7Y3A==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQC6Rb/aoeePWohxsmfTx2NLRbLSNaNALY8U97RrWdNdVAIhAPnIbExwMd34uRqznu04g9EF4dxAnhSn3tNXp7nrkjmn"}]},"_from":".","_npmVersion":"1.3.5","_npmUser":{"name":"superjoe","email":"superjoe30@gmail.com"},"maintainers":[{"name":"superjoe","email":"superjoe30@gmail.com"}]},"1.0.3":{"name":"mpd","version":"1.0.3","description":"music player daemon client","main":"index.js","engines":{"node":">=0.8.0"},"repository":{"type":"git","url":"git@github.com:superjoe30/mpd.js.git"},"keywords":["mpd","music","player","daemon","client","protocol"],"author":{"name":"Andrew Kelley","email":"superjoe30@gmail.com"},"license":"MIT","bugs":{"url":"https://github.com/superjoe30/mpd.js/issues"},"_id":"mpd@1.0.3","dist":{"shasum":"eab52888d82075d8fc259bda278caa78641bff6e","tarball":"https://registry.npmjs.org/mpd/-/mpd-1.0.3.tgz","integrity":"sha512-HSNfKDNOQz/80a3PnYbavKGRgtHTT8qlIIdWMe++Z394704yp1vwK4YivK5V9j7MeAZebSPDcmf/6F6OpUWbhA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDliJ2OPf8lPvz25EmonWFWq6IJgX4eUJakCw/pSgASpAIhAPrN4DotejcePnc5ocIyhnxE40ALWpTiejdGy9eYQr+3"}]},"_from":".","_npmVersion":"1.3.10","_npmUser":{"name":"superjoe","email":"superjoe30@gmail.com"},"maintainers":[{"name":"superjoe","email":"superjoe30@gmail.com"}]},"1.1.0":{"name":"mpd","version":"1.1.0","description":"music player daemon client","main":"index.js","engines":{"node":">=0.8.0"},"repository":{"type":"git","url":"git@github.com:andrewrk/mpd.js.git"},"keywords":["mpd","music","player","daemon","client","protocol"],"author":{"name":"Andrew Kelley","email":"superjoe30@gmail.com"},"license":"MIT","bugs":{"url":"https://github.com/andrewrk/mpd.js/issues"},"_id":"mpd@1.1.0","dist":{"shasum":"73b92f5a702b8f21ee9aafda5c279431834767b6","tarball":"https://registry.npmjs.org/mpd/-/mpd-1.1.0.tgz","integrity":"sha512-mwJSfqlxemZfPTIY0epqkewKZOSBEVSYJ/ZHkf2CFjYkdsbGt1Y+rZwhDpEPes4FopuQBtMBma6LEMUudEWpaA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIDQ25dG0YYvf4Ifc7kb0E2uCuQ4kUapd460kpb2lOwxcAiB0Ahhf6TpangRru7yrPqxLvkdWKC72D0p7QxEhGc3/7w=="}]},"_from":".","_npmVersion":"1.3.10","_npmUser":{"name":"superjoe","email":"superjoe30@gmail.com"},"maintainers":[{"name":"superjoe","email":"superjoe30@gmail.com"}]},"1.2.0":{"name":"mpd","version":"1.2.0","description":"music player daemon client","main":"index.js","engines":{"node":">=0.8.0"},"repository":{"type":"git","url":"git@github.com:andrewrk/mpd.js.git"},"keywords":["mpd","music","player","daemon","client","protocol"],"author":{"name":"Andrew Kelley","email":"superjoe30@gmail.com"},"license":"MIT","bugs":{"url":"https://github.com/andrewrk/mpd.js/issues"},"_id":"mpd@1.2.0","dist":{"shasum":"253b8d9ac155fd6b43830c69743cc4bb8cd2c1b1","tarball":"https://registry.npmjs.org/mpd/-/mpd-1.2.0.tgz","integrity":"sha512-rhLXjjUocd+DwJvxzAzEeUOPz33487MBKhXBtbrINumfugtXPkFMoS6q4HgSZGEhxR0P2DSpD0K1UG1BGXQMzw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIBycRctmmrf2je6DhivuJJ95Hp14aloJqoqYE2vh2ILtAiEAkb/M5zLc7TPGp8wpb6JKD544mheFAHfCYWLL8NMuWmA="}]},"_from":".","_npmVersion":"1.3.10","_npmUser":{"name":"superjoe","email":"superjoe30@gmail.com"},"maintainers":[{"name":"superjoe","email":"superjoe30@gmail.com"}]},"1.3.0":{"name":"mpd","version":"1.3.0","description":"music player daemon client","main":"index.js","engines":{"node":">=0.8.0"},"repository":{"type":"git","url":"git@github.com:andrewrk/mpd.js.git"},"keywords":["mpd","music","player","daemon","client","protocol"],"author":{"name":"Andrew Kelley","email":"superjoe30@gmail.com"},"license":"MIT","gitHead":"57a25fca5433e04a770e7d1bdb7d0146c91e7f63","bugs":{"url":"https://github.com/andrewrk/mpd.js/issues"},"homepage":"https://github.com/andrewrk/mpd.js","_id":"mpd@1.3.0","scripts":{},"_shasum":"a9a0e028f6808e5594f76fa9f0c574ad86f0c0dd","_from":".","_npmVersion":"2.5.1","_nodeVersion":"0.12.0","_npmUser":{"name":"superjoe","email":"superjoe30@gmail.com"},"maintainers":[{"name":"superjoe","email":"superjoe30@gmail.com"}],"dist":{"shasum":"a9a0e028f6808e5594f76fa9f0c574ad86f0c0dd","tarball":"https://registry.npmjs.org/mpd/-/mpd-1.3.0.tgz","integrity":"sha512-05W8x70k9OZ6NLSKjEvEMsaeWbJI+Remg+lTvvanrMnv1p9LiaUUVyskkVqeImPBd0Zci1EsQ0OsrRfrnN/WEw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDAI6UAU0lkAUCuJjfXOYSrQxmXpSY/+bsy1y/Cu63pMgIgPtFPK0SoouhAPfl4UO0s0beWIGmvSfIvx761VGu5PU0="}]}}},"readme":"# node mpd client\n\nConnect to a [music player daemon](http://musicpd.org) server, send commands,\nemit events.\n\nYou might also be interested in checking out\n[node-groove](https://github.com/andrewrk/node-groove),\na generic music player backend as a node module.\n\nOr maybe [Groove Basin](https://github.com/andrewrk/groovebasin),\na music player server which supports the MPD protocol and has many\n[features and improvements](http://andrewkelley.me/post/quest-build-ultimate-music-player.html)\nover MPD.\n\n## Usage\n\n```js\nvar mpd = require('mpd'),\n    cmd = mpd.cmd\nvar client = mpd.connect({\n  port: 6600,\n  host: 'localhost',\n});\nclient.on('ready', function() {\n  console.log(\"ready\");\n});\nclient.on('system', function(name) {\n  console.log(\"update\", name);\n});\nclient.on('system-player', function() {\n  client.sendCommand(cmd(\"status\", []), function(err, msg) {\n    if (err) throw err;\n    console.log(msg);\n  });\n});\n```\n\n## Documentation\n\nSee also the [MPD Protocol Documentation](http://www.musicpd.org/doc/protocol/).\n\n### Functions\n\n#### mpd.cmd(name, args)\n\nConvert name/args pair into a Command.\n\n#### mpd.connect(options)\n\nConnects and returns a client.\n\n#### mpd.parseKeyValueMessage(msg)\n\n`msg`: a string which contains an MPD response.\nReturns an object.\n\n#### client.sendCommand(command, callback)\n\n`command` can be a `MpdClient.Command` or a string.\n\n#### client.sendCommands(commandList, callback)\n\n### Events\n\n#### error(err)\n\n#### end\n\nThe connection is closed.\n\n#### connect\n\nA socket connection has been made.\n\n#### ready\n\nThe mpd server is ready to accept commands.\n\n#### system(systemName)\n\nA system has updated. `systemName` is one of:\n\n  * `database` - the song database has been modified after update.\n  * `update` - a database update has started or finished. If the database was\n    modified during the update, the database event is also emitted.\n  * `stored_playlist` - a stored playlist has been modified, renamed, created\n    or deleted\n  * `playlist` - the current playlist has been modified\n  * `player` - the player has been started, stopped or seeked\n  * `mixer` - the volume has been changed\n  * `output` - an audio output has been enabled or disabled\n  * `options` - options like repeat, random, crossfade, replay gain\n  * `sticker` - the sticker database has been modified.\n  * `subscription` - a client has subscribed or unsubscribed to a channel\n  * `message` - a message was received on a channel this client is subscribed\n    to; this event is only emitted when the queue is empty\n\n#### system-*\n\nSee above event. Each system name has its own event as well.\n","maintainers":[{"name":"superjoe","email":"superjoe30@gmail.com"}],"time":{"modified":"2022-06-20T11:00:56.976Z","created":"2012-08-09T21:19:38.483Z","0.0.1":"2012-08-09T21:19:38.840Z","0.2.0":"2012-08-09T21:54:09.941Z","0.3.0":"2012-08-10T00:19:34.492Z","0.3.1":"2012-08-10T02:19:25.556Z","0.3.2":"2012-08-10T03:00:45.687Z","0.3.3":"2012-08-11T07:59:54.261Z","1.0.0":"2013-03-27T17:51:51.492Z","1.0.1":"2013-04-20T17:07:11.964Z","1.0.2":"2013-08-11T18:38:52.369Z","1.0.3":"2014-08-02T16:02:57.795Z","1.1.0":"2014-08-28T19:23:47.718Z","1.2.0":"2014-10-08T23:52:51.101Z","1.3.0":"2015-03-19T21:57:09.948Z"},"author":{"name":"Andrew Kelley","email":"superjoe30@gmail.com"},"repository":{"type":"git","url":"git@github.com:andrewrk/mpd.js.git"},"users":{"philippwiddra":true,"sangallimarco":true,"monsterkodi":true,"pascal3366":true},"keywords":["mpd","music","player","daemon","client","protocol"],"bugs":{"url":"https://github.com/andrewrk/mpd.js/issues"},"license":"MIT","readmeFilename":"README.md","homepage":"https://github.com/andrewrk/mpd.js"}