{"id":16642056,"url":"https://github.com/artskydj/sox-server","last_synced_at":"2025-06-30T21:35:09.259Z","repository":{"id":146977230,"uuid":"44315987","full_name":"ArtskydJ/sox-server","owner":"ArtskydJ","description":":satellite: A server that runs sox to convert audio files to a specified type","archived":false,"fork":false,"pushed_at":"2019-03-29T03:49:57.000Z","size":15,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-12T05:29:50.573Z","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":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ArtskydJ.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2015-10-15T12:30:45.000Z","updated_at":"2019-09-22T22:35:37.000Z","dependencies_parsed_at":null,"dependency_job_id":"9f55f6f0-79fb-41e7-961e-4ea3ffb5b3fd","html_url":"https://github.com/ArtskydJ/sox-server","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/ArtskydJ/sox-server","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ArtskydJ%2Fsox-server","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ArtskydJ%2Fsox-server/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ArtskydJ%2Fsox-server/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ArtskydJ%2Fsox-server/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ArtskydJ","download_url":"https://codeload.github.com/ArtskydJ/sox-server/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ArtskydJ%2Fsox-server/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":262854582,"owners_count":23375147,"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-12T07:48:45.592Z","updated_at":"2025-06-30T21:35:09.219Z","avatar_url":"https://github.com/ArtskydJ.png","language":"JavaScript","readme":"I'm never going to work on this, so I added the `wontfix` label to the issues, and closed them.\r\n\r\n-----------\r\n\r\nsox-server\r\n==========\r\n\r\n[![Build Status](https://travis-ci.org/ArtskydJ/sox-server.svg)](https://travis-ci.org/ArtskydJ/sox-server)\r\n\r\n# example\r\n\r\n*server.js*\r\n\r\n```js\r\nvar casa = require('sox-server')\r\nvar http = require('http')\r\nvar ecstatic = require('ecstatic')\r\n\r\nvar server = http.createServer(ecstatic(__dirname))\r\ncasa(server)\r\nserver.listen(8080)\r\n```\r\n\r\n*client.js*\r\n\r\n```js\r\nvar upload = require('sox-server')\r\nvar dragDrop = require('drag-drop')\r\n\r\ndragDrop('body', function (files) {\r\n\tupload(files, function (err, responses) {\r\n\t\tif (err) throw err\r\n\t\tconsole.log(responses)\r\n\t})\r\n})\r\n```\r\n\r\n# server api\r\n\r\n```js\r\nvar server = require('sox-server')()\r\n```\r\n\r\n### `server`\r\n\r\n- `server` is an [`http.Server`](https://nodejs.org/api/http.html#http_class_http_server) instance. You have to call `server.listen(port)`.\r\n\r\n# browser api\r\n\r\nWritten for use with [browserify](https://github.com/substack/node-browserify).\r\n\r\n```js\r\nvar upload = require('sox-server')()\r\n```\r\n\r\n### `upload(files)`\r\n\r\n`upload` is a function, as well as an event emitter.\r\n\r\n- `files` is a file or an array of files.\r\n\r\n### events\r\n\r\n- `error(err)` - Emits an error that it got when trying to upload\r\n- `ready(file)` - Emits the successfully converted `file`, or the same `file` if it was valid\r\n\r\n```js\r\nupload.on('error', console.error.bind(console))\r\n\r\nupload.on('ready', function (file) {\r\n\tconsole.log('yeah, converted another file!')\r\n})\r\n```\r\n\r\n# install\r\n\r\nWith [npm](http://nodejs.org/download) do:\r\n\r\n\tnpm install sox-server\r\n\r\n# license\r\n\r\n[VOL](http://veryopenlicense.com)\r\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fartskydj%2Fsox-server","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fartskydj%2Fsox-server","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fartskydj%2Fsox-server/lists"}