{"id":19922675,"url":"https://github.com/soundux/pantomime","last_synced_at":"2025-08-26T19:26:32.917Z","repository":{"id":103640057,"uuid":"546223422","full_name":"Soundux/pantomime","owner":"Soundux","description":"🗃️ A C++ library for work with mime-types","archived":false,"fork":false,"pushed_at":"2023-06-03T08:40:14.000Z","size":816,"stargazers_count":4,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-11-12T22:13:16.589Z","etag":null,"topics":["cpp","cpp-library","cpp17","cpp17-library","mime","mime-database","mime-type","mime-types","mimetypes"],"latest_commit_sha":null,"homepage":"","language":"C++","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/Soundux.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":"2022-10-05T18:35:04.000Z","updated_at":"2024-04-12T00:19:19.000Z","dependencies_parsed_at":"2024-11-12T22:11:56.608Z","dependency_job_id":"8e3b8cbc-e5b5-4e15-822d-437fa05354a0","html_url":"https://github.com/Soundux/pantomime","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/Soundux%2Fpantomime","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Soundux%2Fpantomime/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Soundux%2Fpantomime/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Soundux%2Fpantomime/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Soundux","download_url":"https://codeload.github.com/Soundux/pantomime/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":233550375,"owners_count":18692833,"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":["cpp","cpp-library","cpp17","cpp17-library","mime","mime-database","mime-type","mime-types","mimetypes"],"created_at":"2024-11-12T22:11:51.683Z","updated_at":"2025-01-12T00:14:05.598Z","avatar_url":"https://github.com/Soundux.png","language":"C++","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003chr/\u003e\n\n\u003cdiv align=\"center\"\u003e \n    \u003cimg src=\"assets/logo.png\" height=312\u003e\n\u003c/div\u003e\n\n\u003chr/\u003e\n\n\u003cdiv align=\"center\"\u003e \n\n### 📋 About\n\n_Pantomime_ is a simple to use, zero-dependency, straight-forward, C++17 library for work with mime-types.\n\n\n### 📦 Installation\n\n\u003cdiv align=\"left\"\u003e\n\n- With FetchContent\n  ```cmake\n  include(FetchContent)\n\n  FetchContent_Declare(pantomime GIT_REPOSITORY \"https://github.com/Soundux/pantomime\")\n  FetchContent_MakeAvailable(pantomime)\n\n  target_link_libraries(\u003ctarget\u003e soundux::pantomime)\n  ```\n- As Git-Submodule\n  ```bash\n  $ git submodule add https://github.com/Soundux/pantomime\n  ```\n  ```cmake\n  add_subdirectory(pantomime)\n  target_link_libraries(\u003ctarget\u003e soundux::pantomime)\n  ```\n\n\n\u003c/div\u003e\n\n### 🚀 Simple Example\n\n\u003c/div\u003e\n\n```cpp\nauto mime = pantomime::mime::from(\"test.mp4\").value(); // or pantomime::mime::get(\"video/mp4\");\n\nassert(mime.type == \"video\");\nassert(mime.sub_type == \"mp4\");\nassert(mime.extensions.count(\"mp4\"));\nassert(mime.compressible.value() == false);\n```\n\n---\n\n\u003e _Pantomime_ is based on [mime-db](https://github.com/jshttp/mime-db)  \n\u003e Our logo was generated by [DALL-E](https://openai.com/dall-e-2/)","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsoundux%2Fpantomime","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsoundux%2Fpantomime","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsoundux%2Fpantomime/lists"}