{"id":17614596,"url":"https://github.com/t1st3/is-mkv","last_synced_at":"2026-02-03T02:36:47.759Z","repository":{"id":57277372,"uuid":"49991603","full_name":"t1st3/is-mkv","owner":"t1st3","description":"Check if a Buffer/Uint8Array is a MKV video","archived":false,"fork":false,"pushed_at":"2020-06-03T09:18:46.000Z","size":1097,"stargazers_count":2,"open_issues_count":2,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-05-07T19:53:01.779Z","etag":null,"topics":["buffer","detect","file","javascript","magic-numbers","mkv","uint8array"],"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/t1st3.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}},"created_at":"2016-01-19T23:54:45.000Z","updated_at":"2023-03-04T06:26:26.000Z","dependencies_parsed_at":"2022-09-13T04:52:18.083Z","dependency_job_id":null,"html_url":"https://github.com/t1st3/is-mkv","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"purl":"pkg:github/t1st3/is-mkv","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/t1st3%2Fis-mkv","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/t1st3%2Fis-mkv/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/t1st3%2Fis-mkv/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/t1st3%2Fis-mkv/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/t1st3","download_url":"https://codeload.github.com/t1st3/is-mkv/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/t1st3%2Fis-mkv/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":263785622,"owners_count":23511140,"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":["buffer","detect","file","javascript","magic-numbers","mkv","uint8array"],"created_at":"2024-10-22T18:44:10.579Z","updated_at":"2026-02-03T02:36:47.678Z","avatar_url":"https://github.com/t1st3.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# is-mkv\n\n[![NPM version](https://img.shields.io/npm/v/is-mkv.svg)](https://www.npmjs.com/package/is-mkv)\n[![Build Status](https://travis-ci.org/t1st3/is-mkv.svg?branch=master)](https://travis-ci.org/t1st3/is-mkv)\n\n\u003e Check if a Buffer/Uint8Array is a [MKV](https://en.wikipedia.org/wiki/Matroska) video\n\n\n## Install\n\n```sh\n$ npm install --save is-mkv\n```\n\n\n## Usage\n\n### Node.js\n\n```js\nvar readChunk = require('read-chunk'); // npm install read-chunk\nvar isMkv = require('is-mkv');\nvar buffer = readChunk.sync('unicorn.mkv', 0, 39);\n\nisMkv(buffer);\n//=\u003e true\n```\n\n### Browser\n\n```js\nvar xhr = new XMLHttpRequest();\nxhr.open('GET', 'unicorn.mkv');\nxhr.responseType = 'arraybuffer';\n\nxhr.onload = function () {\n\tisMkv(new Uint8Array(this.response));\n\t//=\u003e true\n};\n\nxhr.send();\n```\n\n\n## API\n\n### isMkv(buffer)\n\nAccepts a Buffer (Node.js) or Uint8Array.\n\nIt only needs the first 39 bytes.\n\n\n## License\n\nMIT © [t1st3](https://t1st3.com)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ft1st3%2Fis-mkv","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ft1st3%2Fis-mkv","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ft1st3%2Fis-mkv/lists"}