@gemini-tools/mime
v0.0.2
Published
MIME type utilities for Gemini protocol, adds support for text/gemtext
Downloads
16
Readme
@gemini-tools/mime
A thin wrapper around the default mime package that additionally handles Gemini specific file formats.
Usage
The exported GeminiMime object has the exact same API as the mime package.
const { GeminiMime } = require('gemini-tools/mime');
GeminiMime.getType('gemini://example.com/foo.gmi'); // text/gemtext
GeminiMime.getExtension('text/gemtext'); // gmi