{"id":13672714,"url":"https://github.com/caffco/get-audio-duration","last_synced_at":"2025-04-04T09:09:26.474Z","repository":{"id":36311627,"uuid":"40616258","full_name":"caffco/get-audio-duration","owner":"caffco","description":"Returns duration of an audio file via ffprobe","archived":false,"fork":false,"pushed_at":"2024-10-30T04:56:17.000Z","size":11286,"stargazers_count":68,"open_issues_count":2,"forks_count":10,"subscribers_count":4,"default_branch":"main","last_synced_at":"2024-10-30T05:54:43.410Z","etag":null,"topics":["audio","audio-duration","ffprobe","javascript","typescript"],"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/caffco.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","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":"2015-08-12T18:03:34.000Z","updated_at":"2024-10-30T04:56:20.000Z","dependencies_parsed_at":"2024-01-05T06:24:30.248Z","dependency_job_id":"245c5c6c-7e12-4c92-8d8c-4bcbed054697","html_url":"https://github.com/caffco/get-audio-duration","commit_stats":{"total_commits":523,"total_committers":3,"mean_commits":"174.33333333333334","dds":"0.13575525812619504","last_synced_commit":"f1a094a3a4516f9520974c7a98e0a6c8db1ac43d"},"previous_names":[],"tags_count":15,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/caffco%2Fget-audio-duration","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/caffco%2Fget-audio-duration/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/caffco%2Fget-audio-duration/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/caffco%2Fget-audio-duration/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/caffco","download_url":"https://codeload.github.com/caffco/get-audio-duration/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247149502,"owners_count":20891954,"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":["audio","audio-duration","ffprobe","javascript","typescript"],"created_at":"2024-08-02T09:01:45.187Z","updated_at":"2025-04-04T09:09:26.457Z","avatar_url":"https://github.com/caffco.png","language":"TypeScript","funding_links":[],"categories":["TypeScript"],"sub_categories":[],"readme":"# get-audio-duration\n\n[![NPM version][npm-image]][npm-url]\n![Build Status](https://github.com/caffco/get-audio-duration/workflows/test/badge.svg)\n[![Maintainability](https://api.codeclimate.com/v1/badges/5033f5c3edd89b931e4a/maintainability)](https://codeclimate.com/github/caffco/get-audio-duration/maintainability)\n[![Test Coverage](https://api.codeclimate.com/v1/badges/5033f5c3edd89b931e4a/test_coverage)](https://codeclimate.com/github/caffco/get-audio-duration/test_coverage)\n[![License][license-image]][license-url]\n[![NPM bundle size (minified)][bundle-size-image]][npm-url]\n[![Downloads][downloads-image]][downloads-url]\n\nGet the duration of audio files with `ffprobe`.\n\n# Supported platforms\n\nCurrently this package only supports Linux, Windows 7+, and MacOS 10.9+. **This package does not work in the browser**, iOS or Android.\n\n# Install\n\n```bash\n$ npm install --save get-audio-duration\n```\n\n# Usage\n\n```js\nconst { getAudioDurationInSeconds } = require('get-audio-duration')\n\ngetAudioDurationInSeconds('audio.flac').then((duration) =\u003e {\n  console.log(duration)\n})\n\n// If you need to customize the path to ffprobe...\n\ngetAudioDurationInSeconds('audio.flac', '/path/to/ffprobe').then((duration) =\u003e {\n  console.log(duration)\n})\n```\n\n[npm-image]: https://img.shields.io/npm/v/get-audio-duration.svg\n[npm-url]: https://npmjs.org/package/get-audio-duration\n[bundle-size-image]: https://img.shields.io/bundlephobia/min/get-audio-duration.svg\n[license-image]: http://img.shields.io/npm/l/get-audio-duration.svg\n[license-url]: LICENSE\n[downloads-image]: http://img.shields.io/npm/dm/get-audio-duration.svg\n[downloads-url]: https://npmjs.org/package/get-audio-duration\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcaffco%2Fget-audio-duration","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcaffco%2Fget-audio-duration","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcaffco%2Fget-audio-duration/lists"}