{"id":16809582,"url":"https://github.com/zonemeen/node-player","last_synced_at":"2026-04-28T18:35:39.900Z","repository":{"id":127136854,"uuid":"445386106","full_name":"zonemeen/node-player","owner":"zonemeen","description":"🎤 A simple command line player for NodeJS on Windows and MacOS","archived":false,"fork":false,"pushed_at":"2022-08-16T12:18:08.000Z","size":4711,"stargazers_count":2,"open_issues_count":1,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-10-17T11:37:50.512Z","etag":null,"topics":["audio","audio-player","cli","cli-player","music","music-play","music-player","node","player","sound","sound-player"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/zonemeen.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2022-01-07T03:29:03.000Z","updated_at":"2024-02-01T05:29:14.000Z","dependencies_parsed_at":null,"dependency_job_id":"9cdce54d-712c-49dd-82ef-73c86a019c9d","html_url":"https://github.com/zonemeen/node-player","commit_stats":null,"previous_names":[],"tags_count":7,"template":false,"template_full_name":null,"purl":"pkg:github/zonemeen/node-player","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zonemeen%2Fnode-player","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zonemeen%2Fnode-player/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zonemeen%2Fnode-player/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zonemeen%2Fnode-player/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/zonemeen","download_url":"https://codeload.github.com/zonemeen/node-player/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zonemeen%2Fnode-player/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32394467,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-28T14:34:11.604Z","status":"ssl_error","status_checked_at":"2026-04-28T14:32:37.009Z","response_time":56,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["audio","audio-player","cli","cli-player","music","music-play","music-player","node","player","sound","sound-player"],"created_at":"2024-10-13T10:13:19.240Z","updated_at":"2026-04-28T18:35:39.885Z","avatar_url":"https://github.com/zonemeen.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# node-player\n\nA simple command line player for NodeJS on `Windows` and `MacOS`.\n\nSupport .mp3, .wav, .flac and other extensions.\n\n## Install\n\n```sh\nnpm install @miqilin21/node-player\n```\n\nor\n\n```sh\nyarn add @miqilin21/node-player\n```\n\n## Usage Examples\n\ncjs:\n\n```sh\nconst { Player } = require('@miqilin21/node-player')\nconst player = new Player()\n```\n\nesm:\n\n```sh\nimport { Player } from '@miqilin21/node-player'\nconst player = new Player()\n```\n\n### Relative path\n\ncjs：\n\n```sh\nconst path = require('path')\nconst filePath = path.join(__dirname, 'file.mp3')\nplayer.play(filePath)\n```\n\nesm：\n\n```sh\nimport path from 'path'\nimport { fileURLToPath } from 'url'\nconst __filename = fileURLToPath(import.meta.url)\nconst __dirname = path.dirname(__filename)\nconst filePath = path.join(__dirname, 'foo.mp3')\nplayer.play(filePath)\n```\n\n### Absolute path\n\n```sh\nplayer.play('C:\\\\file.mp3')\n```\n\n### Adjusting volume\n\n```sh\n/**\n * 0   = silent\n * 0.5 = default\n * 1   = max volume\n */\nconst volume = 0.1\nplayer.play('file.mp3', volume)\n```\n\n### Kill process\n\n```sh\nplayer.kill()\n```\n\n## License\n\nReleased under [MIT](/LICENSE) by [@zonemeen](https://github.com/zonemeen).\n\n\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzonemeen%2Fnode-player","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fzonemeen%2Fnode-player","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzonemeen%2Fnode-player/lists"}