Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/davecaos/benetnasch

🎼 Benetnasch a mimetypes library for Gleam (A statically typed language for the Erlang VM)
https://github.com/davecaos/benetnasch

gleam gleam-lang

Last synced: 9 days ago
JSON representation

🎼 Benetnasch a mimetypes library for Gleam (A statically typed language for the Erlang VM)

Awesome Lists containing this project

README

        

# :musical_score: 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/) https://github.com/benoitc/mimerl

![tumblr_nksjt6OcmH1s6cql7o1_500](https://user-images.githubusercontent.com/6124495/82167134-311ebf80-9891-11ea-97f5-56a630b497b5.gif)

## Minimal example

```rust
import benetnasch

let mimetype = benetnasch.extension_to_mimetype("123")

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

```
## Quick start

```sh
# Run the tests
gleam test

# Run gleam REPL
gleam shell
```