{"id":17964823,"url":"https://github.com/davecaos/minmay","last_synced_at":"2025-03-25T06:31:04.166Z","repository":{"id":57527017,"uuid":"61080120","full_name":"davecaos/minmay","owner":"davecaos","description":":japan: Minmay is an Erlang/Elixir library for translating a file extention to MIME type or vice versa","archived":false,"fork":false,"pushed_at":"2018-06-30T15:44:37.000Z","size":59,"stargazers_count":8,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-19T09:40:39.784Z","etag":null,"topics":["elixir","erlang","japan","mime-types"],"latest_commit_sha":null,"homepage":"","language":"Erlang","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/davecaos.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2016-06-14T00:56:38.000Z","updated_at":"2021-01-29T00:00:35.000Z","dependencies_parsed_at":"2022-09-07T03:51:25.183Z","dependency_job_id":null,"html_url":"https://github.com/davecaos/minmay","commit_stats":null,"previous_names":[],"tags_count":6,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/davecaos%2Fminmay","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/davecaos%2Fminmay/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/davecaos%2Fminmay/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/davecaos%2Fminmay/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/davecaos","download_url":"https://codeload.github.com/davecaos/minmay/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245413640,"owners_count":20611350,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["elixir","erlang","japan","mime-types"],"created_at":"2024-10-29T12:08:53.972Z","updated_at":"2025-03-25T06:31:03.877Z","avatar_url":"https://github.com/davecaos.png","language":"Erlang","funding_links":[],"categories":[],"sub_categories":[],"readme":"# minmay\n\n[![Travis](https://img.shields.io/travis/davecaos/minmay.svg?style=flat-square)](https://travis-ci.org/davecaos/minmay)\n[![Hex.pm](https://img.shields.io/hexpm/v/minmay.svg?style=flat-square)](https://hex.pm/packages/minmay)\n[![License](http://img.shields.io/hexpm/l/minmay.svg?style=flat)](https://hex.pm/packages/minmay)\n[![Hex.pm](https://img.shields.io/hexpm/dt/minmay.svg?style=flat-square)](https://hex.pm/packages/minmay)\n\n![GIF](http://1.bp.blogspot.com/-yHRkA0tfIds/T8--B9NF1bI/AAAAAAAAC9k/_XLHURp5BeE/s1600/Lynn+Minmay+-+Shao+Pai+Ron.gif)\n\nMinmay is an Erlang/Elixir application for mapping a file extention to MIME type or vice versa\n\nThe conversion proplist is cached using two [ETS tables](http://learnyousomeerlang.com/ets) (extensions and mime_types)\n\nIt was based in [@samuelneff's](https://github.com/samuelneff/) [MimeTypeMap](https://github.com/samuelneff/MimeTypeMap)\n\n---------\nErlang Example:\n```erlang\nEshell V7.0  (abort with ^G)\n1\u003e  minmay:start().\nok\n2\u003e minmay:from_extension(\".jpg\").\n\"image/jpeg\" \n2\u003e minmay:from_filename(\"vacations.jpg\").\n\"image/jpeg\"\n3\u003e minmay:from_mime_type(\"image/jpeg\").\n\".jpg\"\n4\u003e minmay:stop().\nok\n   \n```\n\n---------\nElixir Example:\n```elixir\nInteractive Elixir (1.3.0) - press Ctrl+C to exit (type h() ENTER for help)\niex(1)\u003e Minmay.start()\n:ok\niex(2)\u003e Minmay.from_extension('.jpg')\n'image/jpeg'\niex(3)\u003e Minmay.from_filename('vacations.jpg')\n'image/jpeg'\niex(4)\u003e Minmay.from_mime_type('image/jpeg')\n'.jpg'\niex(6)\u003e Minmay.stop()\n:ok\n   \n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdavecaos%2Fminmay","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdavecaos%2Fminmay","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdavecaos%2Fminmay/lists"}