Skip to content

Latest commit

 

History

History
24 lines (18 loc) · 604 Bytes

README.md

File metadata and controls

24 lines (18 loc) · 604 Bytes

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.