{"id":24722031,"url":"https://github.com/hill-98/mpv-javascript-http","last_synced_at":"2025-10-28T01:48:19.347Z","repository":{"id":99602484,"uuid":"554307781","full_name":"Hill-98/mpv-javascript-http","owner":"Hill-98","description":"Http client for mpv javascript scripts (based on curl)","archived":false,"fork":false,"pushed_at":"2024-03-15T15:45:49.000Z","size":48,"stargazers_count":2,"open_issues_count":0,"forks_count":2,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-01-27T12:15:47.651Z","etag":null,"topics":["javascript","mpv","mpv-script"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Hill-98.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}},"created_at":"2022-10-19T15:38:53.000Z","updated_at":"2024-08-21T15:32:00.000Z","dependencies_parsed_at":"2023-07-31T02:45:27.760Z","dependency_job_id":null,"html_url":"https://github.com/Hill-98/mpv-javascript-http","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Hill-98%2Fmpv-javascript-http","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Hill-98%2Fmpv-javascript-http/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Hill-98%2Fmpv-javascript-http/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Hill-98%2Fmpv-javascript-http/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Hill-98","download_url":"https://codeload.github.com/Hill-98/mpv-javascript-http/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244959448,"owners_count":20538626,"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":["javascript","mpv","mpv-script"],"created_at":"2025-01-27T12:15:59.284Z","updated_at":"2025-10-28T01:48:14.330Z","avatar_url":"https://github.com/Hill-98.png","language":"JavaScript","readme":"# mpv-javascript-http\n\nHttp client for mpv scripts (based on curl).\n\n_Windows 10/11 already comes with `curl.exe` pre-installed, so it works on almost all platforms out of the box._\n\n## Example\n\n```javascript\n'use strict';\n\nvar msg = mp.msg;\nvar HttpClient = require('./HttpClient');\n\nvar http = new HttpClient();\n\n// Check if the system has curl\nif (!HttpClient.available) {\n    msg.error('HTTP client unavailable!');\n    exit();\n}\n\nhttp.get('https://jsonplaceholder.typicode.com/todos/1', function (err, res) {\n    if (err) {\n      msg.error(err);\n      return;\n    }\n    dump(res.data.id); // Auto parse json data\n    dump(res.headers);\n    dump(res.raw_data);\n    dump(res.status_code);\n});\n```\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhill-98%2Fmpv-javascript-http","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhill-98%2Fmpv-javascript-http","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhill-98%2Fmpv-javascript-http/lists"}