{"id":30580363,"url":"https://github.com/borewit/file-type-av","last_synced_at":"2026-01-20T17:35:12.440Z","repository":{"id":302107954,"uuid":"1011284293","full_name":"Borewit/file-type-av","owner":"Borewit","description":"file-type plugin for improved audio / video type detection","archived":false,"fork":false,"pushed_at":"2025-07-15T17:12:19.000Z","size":10724,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-08-21T00:05:57.781Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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/Borewit.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,"zenodo":null},"funding":{"github":"Borewit","buy_me_a_coffee":"borewit"}},"created_at":"2025-06-30T15:21:47.000Z","updated_at":"2025-07-15T17:12:22.000Z","dependencies_parsed_at":"2025-06-30T16:38:16.166Z","dependency_job_id":"865a3870-6ee7-4899-ad1b-0de307cb9693","html_url":"https://github.com/Borewit/file-type-av","commit_stats":null,"previous_names":["borewit/file-type-av"],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/Borewit/file-type-av","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Borewit%2Ffile-type-av","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Borewit%2Ffile-type-av/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Borewit%2Ffile-type-av/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Borewit%2Ffile-type-av/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Borewit","download_url":"https://codeload.github.com/Borewit/file-type-av/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Borewit%2Ffile-type-av/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":272634507,"owners_count":24967661,"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","status":"online","status_checked_at":"2025-08-29T02:00:10.610Z","response_time":87,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":[],"created_at":"2025-08-29T05:23:12.105Z","updated_at":"2026-01-20T17:35:12.407Z","avatar_url":"https://github.com/Borewit.png","language":"JavaScript","funding_links":["https://github.com/sponsors/Borewit","https://buymeacoffee.com/borewit"],"categories":[],"sub_categories":[],"readme":"[![NPM version](https://img.shields.io/npm/v/@file-type/av.svg)](https://npmjs.org/package/@file-type/av)\n[![Node.js CI](https://github.com/Borewit/file-type-av/actions/workflows/nodejs-ci.yml/badge.svg)](https://github.com/Borewit/file-type-av/actions/workflows/nodejs-ci.yml)\n[![npm downloads](https://img.shields.io/npm/dm/@file-type/av.svg)](https://npmcharts.com/compare/@file-type/av?start=365)\n\n# @file-type/av\n\nA plugin for [file-type](https://github.com/sindresorhus/file-type) that detects _audio_ and _video_ file formats.\nThis plugin helps differentiate between audio and video file types more precisely.\n\n## Installation\n\n```bash\nnpm install @file-type/av\n```\n## Usage\n\nHere’s how to use this plugin with `file-type` to detect audio/video formats:\n\n```js\nimport { fileTypeFromFile } from 'file-type';\nimport { detectAv } from '@file-type/av';\n\nconst fileType = await fileTypeFromFile('example.mka', {\n  customDetectors: [detectAv]\n});\n\nconsole.log(JSON.stringify(fileType, null, 2));\n```\n\n---\n\n## Supported Media Formats\n\n### Matroska\n- `audio/matroska` – `.mka`\n- `video/matroska` – `.mkv`\n\n### MP4\n- `audio/mp4` – `.m4a`\n- `video/mp4` – `.mp4`\n\n### Ogg\n- `audio/ogg; codecs=opus` – `.opus` (Opus)\n- `audio/ogg; codecs=speex` – `.spx` (Speex)\n- `audio/ogg; codecs=vorbis` – `.ogg` (Vorbis)\n- `video/ogg` – `.ogv` (Theora)\n\n### WebM\n- `audio/webm` – `.webm`\n- `video/webm` – `.webm`\n\n### Windows Media\n- `audio/x-ms-asf` – `.wma`\n- `video/x-ms-asf` – `.wmv`\n\n---\n\n## License\n\nLicensed under the [MIT License](LICENSE.txt).\nYou are free to use, modify, and distribute this project as needed.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fborewit%2Ffile-type-av","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fborewit%2Ffile-type-av","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fborewit%2Ffile-type-av/lists"}