mpc.js is a javascript client library for the Music Player Daemon.
It features a Promise-based API for all mpd commands, type definitions for Typescript and works in both node.js and current browsers (connecting to mpd through a WebSocket bridge like websockify).
This is the core package containing everything except the browser- and node-specific networking code.
Installation and usage examples for mpc.js can be found here and Typedoc-generated API documentation is available here.