Skip to content

Latest commit

 

History

History
27 lines (17 loc) · 644 Bytes

README.md

File metadata and controls

27 lines (17 loc) · 644 Bytes

🎼 Mime de Benetnasch Eta

Mimetypes library for Gleam (A statically typed language for the Erlang VM)

This library is a port of @benoitc's https://github.com/benoitc/mimerl

tumblr_nksjt6OcmH1s6cql7o1_500

Minimal example

import benetnasch

    let mimetype = benetnasch.extension_to_mimetype("123")

    let extensions  = benetnasch.mimetype_to_extentions("application/vnd.lotus-1-2-3")

Quick start

# Run the tests
gleam test

# Run gleam REPL
gleam shell