lpil / marceau

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

marceau

Package Version Hex Docs

A MIME types library for Gleam.

gleam add marceau
import marceau

pub fn main() {
  marceau.extension_to_mime_type("json")
  // -> "application/json"

  marceau.mime_type_to_extensions("application/json")
  // -> ["json"]
}

This library is based off of the mimerl Erlang library but ported to pure Gleam so it can be used on any target and platform.

About


Languages

Language:Gleam 100.0%