{"id":23111725,"url":"https://github.com/vickvasquez/get-media-duration","last_synced_at":"2026-05-15T18:32:44.935Z","repository":{"id":126002355,"uuid":"611093650","full_name":"vickvasquez/get-media-duration","owner":"vickvasquez","description":"Get the duration of an media file (audio, video) from local storage or URL","archived":false,"fork":false,"pushed_at":"2023-03-09T04:48:41.000Z","size":323,"stargazers_count":1,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-10-22T04:38:48.708Z","etag":null,"topics":["audio","ffmpeg","ffprobe","get-media-duration"],"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/vickvasquez.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":"2023-03-08T04:55:58.000Z","updated_at":"2024-04-08T16:04:21.000Z","dependencies_parsed_at":"2023-05-30T05:30:09.110Z","dependency_job_id":null,"html_url":"https://github.com/vickvasquez/get-media-duration","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/vickvasquez/get-media-duration","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vickvasquez%2Fget-media-duration","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vickvasquez%2Fget-media-duration/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vickvasquez%2Fget-media-duration/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vickvasquez%2Fget-media-duration/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/vickvasquez","download_url":"https://codeload.github.com/vickvasquez/get-media-duration/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vickvasquez%2Fget-media-duration/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33074840,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-15T11:35:32.926Z","status":"ssl_error","status_checked_at":"2026-05-15T11:35:31.362Z","response_time":103,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: 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","ffmpeg","ffprobe","get-media-duration"],"created_at":"2024-12-17T02:10:10.977Z","updated_at":"2026-05-15T18:32:44.916Z","avatar_url":"https://github.com/vickvasquez.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# get-media-duration\n\n## Install\n\n```bash\npnpm add get-media-duration\n```\n\n## Usage\n\n```js\nimport { getDuration, getDurationInMinutes } from 'get-media-duration'\n\ngetDuration('./audio.mp3')\n  .then(duration =\u003e console.log(duration))\n  .catch(console.log)\n\n\ngetDuration('https://samplelib.com/lib/preview/mp3/sample-3s.mp3')\n  .then(duration =\u003e console.log(duration))\n  .catch(console.log)\n\ngetDurationInMinutes('./audio.mp3')\n  .then(duration =\u003e console.log(duration))\n  .catch(console.log)\n\n\ngetDurationInMinutes('https://samplelib.com/lib/preview/mp3/sample-3s.mp3')\n  .then(duration =\u003e console.log(duration))\n  .catch(console.log)\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvickvasquez%2Fget-media-duration","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fvickvasquez%2Fget-media-duration","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvickvasquez%2Fget-media-duration/lists"}