{"id":30835868,"url":"https://github.com/nskazki/working-mpd-client","last_synced_at":"2025-09-06T17:50:19.237Z","repository":{"id":17785791,"uuid":"20659566","full_name":"nskazki/working-mpd-client","owner":"nskazki","description":"An MPD client","archived":false,"fork":false,"pushed_at":"2022-02-12T16:02:07.000Z","size":136,"stargazers_count":1,"open_issues_count":5,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-08-22T04:17:31.427Z","etag":null,"topics":["mpd","mpd-client","updated-2019"],"latest_commit_sha":null,"homepage":"https://www.npmjs.com/package/working-mpd-client","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/nskazki.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2014-06-09T19:37:23.000Z","updated_at":"2020-06-26T04:38:22.000Z","dependencies_parsed_at":"2022-09-02T23:51:59.760Z","dependency_job_id":null,"html_url":"https://github.com/nskazki/working-mpd-client","commit_stats":null,"previous_names":["nskazki/node-workingmpdclient"],"tags_count":20,"template":false,"template_full_name":null,"purl":"pkg:github/nskazki/working-mpd-client","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nskazki%2Fworking-mpd-client","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nskazki%2Fworking-mpd-client/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nskazki%2Fworking-mpd-client/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nskazki%2Fworking-mpd-client/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/nskazki","download_url":"https://codeload.github.com/nskazki/working-mpd-client/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nskazki%2Fworking-mpd-client/sbom","scorecard":{"id":697289,"data":{"date":"2025-08-11","repo":{"name":"github.com/nskazki/working-mpd-client","commit":"ea8e722e96c2d6a303255f783aff0826f63e04a9"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":1.3,"checks":[{"name":"Binary-Artifacts","score":10,"reason":"no binaries found in the repo","details":null,"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#binary-artifacts"}},{"name":"Maintained","score":0,"reason":"0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"Pinned-Dependencies","score":-1,"reason":"no dependencies found","details":null,"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#pinned-dependencies"}},{"name":"SAST","score":0,"reason":"no SAST tool detected","details":["Warn: no pull requests merged into dev branch"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}},{"name":"Packaging","score":-1,"reason":"packaging workflow not detected","details":["Warn: no GitHub/GitLab publishing workflow detected."],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#packaging"}},{"name":"Dangerous-Workflow","score":-1,"reason":"no workflows found","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#dangerous-workflow"}},{"name":"Code-Review","score":0,"reason":"Found 0/30 approved changesets -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#code-review"}},{"name":"Token-Permissions","score":-1,"reason":"No tokens found","details":null,"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#token-permissions"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#cii-best-practices"}},{"name":"Security-Policy","score":0,"reason":"security policy file not detected","details":["Warn: no security policy file detected","Warn: no security file to analyze","Warn: no security file to analyze","Warn: no security file to analyze"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#security-policy"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no fuzzer integrations found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#fuzzing"}},{"name":"License","score":0,"reason":"license file not detected","details":["Warn: project does not have a license file"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"name":"Signed-Releases","score":-1,"reason":"no releases found","details":null,"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"name":"Branch-Protection","score":0,"reason":"branch protection not enabled on development/release branches","details":["Warn: branch protection not enabled for branch 'master'"],"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#branch-protection"}},{"name":"Vulnerabilities","score":0,"reason":"17 existing vulnerabilities detected","details":["Warn: Project is vulnerable to: GHSA-67hx-6x53-jw92","Warn: Project is vulnerable to: GHSA-6chw-6frg-f759","Warn: Project is vulnerable to: GHSA-v88g-cgmw-v5xw","Warn: Project is vulnerable to: GHSA-93q8-gq69-wqmw","Warn: Project is vulnerable to: GHSA-v6h2-p8h4-qcjw","Warn: Project is vulnerable to: GHSA-3xgq-45jj-v275","Warn: Project is vulnerable to: GHSA-gxpj-cx7g-858c","Warn: Project is vulnerable to: GHSA-ww39-953v-wcq6","Warn: Project is vulnerable to: GHSA-p6mc-m468-83gw","Warn: Project is vulnerable to: GHSA-29mw-wpgm-hmr9","Warn: Project is vulnerable to: GHSA-35jh-r3h4-6jhm","Warn: Project is vulnerable to: GHSA-f8q6-p94x-37v3","Warn: Project is vulnerable to: GHSA-vh95-rmgr-6w4m","Warn: Project is vulnerable to: GHSA-xvch-5gv4-984h","Warn: Project is vulnerable to: GHSA-hj48-42vr-x3v9","Warn: Project is vulnerable to: GHSA-c2qf-rxjj-qqgw","Warn: Project is vulnerable to: GHSA-52f5-9888-hmc6"],"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}}]},"last_synced_at":"2025-08-22T04:05:12.193Z","repository_id":17785791,"created_at":"2025-08-22T04:05:12.193Z","updated_at":"2025-08-22T04:05:12.193Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":273940492,"owners_count":25195096,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-09-06T02:00:13.247Z","response_time":2576,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["mpd","mpd-client","updated-2019"],"created_at":"2025-09-06T17:50:12.172Z","updated_at":"2025-09-06T17:50:19.224Z","avatar_url":"https://github.com/nskazki.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# WorkingMpdClient\n\nAn MPD client\n\n```\nyarn add working-mpd-client\n```\n\n## Features\n\n - `working-mpd-client` supports the command sending\n - `working-mpd-client` allows subscribing on the server events (i.e. status updates)\n - `working-mpd-client` attempts to reconnect if the connection has been interrupted\n\n## Example\n\n```js\nconst mpdClient = new MpdClient({\n  connectOptions: {\n    host: 'localhost',\n    port: 6600\n  },\n  reconnectOptions: {\n    isUse: true,\n    reconnectDelay: 2000\n  }\n}).on('error', console.error)\n  .on('changed', (name) =\u003e {\n    if (name === 'playlist') printPlaylist()\n  })\n  .on('ready', printPlaylist)\n  .init()\n\nfunction printPlaylist() {\n  mpdClient.sendCommand('playlist', (err, result) =\u003e {\n    if (err) {\n      console.error(err)\n    } else {\n      console.log('\\nnew playlist:\\n' + result)\n    }\n  })\n}\n```\n\n## Information events\n\n - `warn` - a channel to notify about maintainable problems.\n    Example: a connection has been interrupted but an attempt to reconnect will be performed.\n    Another example: a server responded with an error to a command that did not register a callback.\n - `error` - a channel to notify about critical problems.\n    Example: a connection has been interrupted and a reconnect attempt won't be performed.\n\n## Connection events\n\n - `ready` - a connection has been established\n - `disconnected` - a connection has been interrupted due to a problem or as the result of a `destroy` method call\n - `reconnecting` - an attempt to recconect is in progress\n - `reconnected` - an attempt to reconnect succeed\n - `destroyed` - a client has been destroyed\n\n## Server events\n\n - `changed` - a server reported a change\n\n## Known changes\n\n - `options` - an option has been changed (the repeat option or the random option for example)\n - `output` - an audio channel has been changed\n - `mixer` - the volume level has been changed\n - `player` - the playback has been paused, resumed, or stoped\n - `playlist` - the playlist has been changed\n - `update` - a database update has been started or completed\n - `database` - the track database has been updated\n\n## Methods\n\n - `init` - establish a connection; `ready` event follows a method call\n - `destroy` - closes a connection and rejects all the callbacks left in the callbacks queue; `disconnected` and `destroyed` events follow a method call\n - `sendCommand` - sends a command to a server and calls a callback when the server responds to the command\n - `sendCommandList` - sends a list of commands to a server and calls a callback when the server responds to all the commands\n\n## Ways to send a command\n\n```js\nmpdClient\n\t.sendCommand('status')\n\t.sendCommand('status', someHandler)\n\t.sendCommand({\n\t\tcmd: 'add',\n\t\targs: 'somePath'\n\t})\n\t.sendCommand({\n\t\tcmd: 'add',\n\t\targs: ['somePath', 'anotherSomePath']\n\t}, someHandler)\n\t.sendCommandList([{\n\t\tcmd: 'add',\n\t\targs: 'somePath'\n\t}, 'play'])\n```\n\n## MPD documention\n\nhttp://www.musicpd.org/doc/protocol/\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnskazki%2Fworking-mpd-client","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnskazki%2Fworking-mpd-client","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnskazki%2Fworking-mpd-client/lists"}