{"id":16190981,"url":"https://github.com/maxmellon/simplayer","last_synced_at":"2025-07-04T04:39:18.368Z","repository":{"id":86954398,"uuid":"55398340","full_name":"MaxMEllon/simplayer","owner":"MaxMEllon","description":"A sound player module is not depend on native extension for node.","archived":false,"fork":false,"pushed_at":"2016-04-06T18:18:47.000Z","size":13,"stargazers_count":9,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-04-02T23:01:38.903Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"JavaScript","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/MaxMEllon.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.txt","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":"2016-04-04T09:14:31.000Z","updated_at":"2018-04-04T14:25:03.000Z","dependencies_parsed_at":"2023-05-29T23:15:15.911Z","dependency_job_id":null,"html_url":"https://github.com/MaxMEllon/simplayer","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/MaxMEllon/simplayer","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MaxMEllon%2Fsimplayer","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MaxMEllon%2Fsimplayer/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MaxMEllon%2Fsimplayer/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MaxMEllon%2Fsimplayer/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/MaxMEllon","download_url":"https://codeload.github.com/MaxMEllon/simplayer/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MaxMEllon%2Fsimplayer/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":263449257,"owners_count":23468121,"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","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":[],"created_at":"2024-10-10T07:44:37.560Z","updated_at":"2025-07-04T04:39:18.347Z","avatar_url":"https://github.com/MaxMEllon.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"\n\u003cp align=\"center\"\u003e\n  \u003cimg src=\"https://raw.githubusercontent.com/MaxMEllon/demos/master/simplayer/simplayer.png\"\u003e\n\u003c/p\u003e\n\n\n- - -\n\n\u003cp\u003e\n  \u003ca href=\"https://www.npmjs.com/package/simplayer\"\u003e\n    \u003cimg src=\"https://nodei.co/npm/simplayer.png\"/\u003e\n  \u003c/a\u003e\n  \u003ca href=\"https://www.npmjs.com/package/simplayer\"\u003e\n    \u003cimg src=\"https://img.shields.io/npm/v/simplayer.svg\" style=\"float:right;\"/\u003e\n  \u003c/a\u003e\n  \u003ca href=\"https://github.com/MaxMEllon/simplayer/blob/master/LICENSE.txt\"\u003e\n    \u003cimg src=\"https://img.shields.io/npm/l/simplayer.svg\" style=\"float:right\"/\u003e\n  \u003c/a\u003e\n\u003c/p\u003e\n\n\n## About\n\nThis is simple multi platform sound player.\nI get ideas from [opener](https://www.npmjs.com/package/opener).\n\nThis module should be used when to play simple sound or sound effect.\nNot suitable for music players.\n\n## Installation\n\n```sh\nnpm install simplayer -g\n\n# if you want to use in node\nnpm install simplayer --save\n```\n\nIf platform is linux, then need to install the `alsa`\n\n```sh\n# before we start the work, please update\nsudo apt-get update\nsudo apt-get upgrade\n\n# install ALSA\nsudo apt-get install alsa-base alsa-utils\n```\n\n## Usage\n\nSimplayer function return child process instance.\n\n```js\n\nvar simplayer = require('simplayer');\n\nvar musicProcess = simplayer('/path/to/sound.mp3');\n\nvar musicProcess = simplayer('path/to/song.mp3', function (error) {\n  if (error) throw error;\n  console.log('end of song!');\n});\n\n```\n\nIf platform is windows, then support wav file only.\n\n```js\n\nvar musicProcess = simplayer('C:\\\\path\\\\to\\\\sound.wav');\n// or\nvar musicProcess = simplayer('C:/path/to/sound.wav');\n\n```\n\nIf handle to close event, Please, in the following manner.\n\n```js\n\nvar simplayer = require('simplayer');\n\nvar musicProcess = simplayer('/path/to/sound.mp3');\n\nmusicProcess.on('close', function(code) {\n  console.log('child process exited with code ' + code);\n});\n\n```\n\nUse in the following manner in command line.\n\n```sh\n\nsimplayer /path/to/sample.mp3\n\n```\n\n## For Japanese\n\n- [http://qiita.com/maxmellon/items/afe7497ef3b4976ee87d](http://qiita.com/maxmellon/items/afe7497ef3b4976ee87d)\n\n## Author\n\n- Maxmellon\n\n## LICENSE\n\nMIT\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmaxmellon%2Fsimplayer","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmaxmellon%2Fsimplayer","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmaxmellon%2Fsimplayer/lists"}