Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/lpil/marceau
https://github.com/lpil/marceau
Last synced: about 1 month ago
JSON representation
- Host: GitHub
- URL: https://github.com/lpil/marceau
- Owner: lpil
- Created: 2023-10-22T21:01:07.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2023-11-06T13:33:48.000Z (about 1 year ago)
- Last Synced: 2024-05-01T23:05:06.623Z (6 months ago)
- Language: Gleam
- Size: 22.5 KB
- Stars: 9
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
Awesome Lists containing this project
- awesome-gleam - marceau - [📚](https://hexdocs.pm/marceau/) - A MIME types library for Gleam (Packages / Standards)
README
# marceau
[![Package Version](https://img.shields.io/hexpm/v/marceau)](https://hex.pm/packages/marceau)
[![Hex Docs](https://img.shields.io/badge/hex-docs-ffaff3)](https://hexdocs.pm/marceau/)A MIME types library for Gleam.
```sh
gleam add marceau
```
```gleam
import marceaupub 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](https://hex.pm/packages/mimerl) Erlang
library but ported to pure Gleam so it can be used on any target and platform.