SkillAgentSearch skills...

Pantomime

🗃️ A C++ library for work with mime-types

Install / Use

/learn @Soundux/Pantomime
About this skill

Quality Score

0/100

Supported Platforms

Universal

README

<hr/> <div align="center"> <img src="assets/logo.png" height=312> </div> <hr/> <div align="center">

📋 About

Pantomime is a simple to use, zero-dependency, straight-forward, C++17 library for work with mime-types.

📦 Installation

<div align="left">
  • With FetchContent
    include(FetchContent)
    
    FetchContent_Declare(pantomime GIT_REPOSITORY "https://github.com/Soundux/pantomime")
    FetchContent_MakeAvailable(pantomime)
    
    target_link_libraries(<target> soundux::pantomime)
    
  • As Git-Submodule
    $ git submodule add https://github.com/Soundux/pantomime
    
    add_subdirectory(pantomime)
    target_link_libraries(<target> soundux::pantomime)
    
</div>

🚀 Simple Example

</div>
auto mime = pantomime::mime::from("test.mp4").value(); // or pantomime::mime::get("video/mp4");

assert(mime.type == "video");
assert(mime.sub_type == "mp4");
assert(mime.extensions.count("mp4"));
assert(mime.compressible.value() == false);

Pantomime is based on mime-db
Our logo was generated by DALL-E

View on GitHub
GitHub Stars4
CategoryData
Updated1y ago
Forks0

Languages

C++

Security Score

75/100

Audited on Apr 12, 2024

No findings