docs(media_types): module doc (#4498)

This commit is contained in:
Asher Gomez 2024-03-17 08:05:59 +10:00 committed by GitHub
parent 749fefe2b6
commit 26093f9670
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -12,6 +12,14 @@
* {@link https://github.com/jshttp/mime-types | jshttp/mime-db} `db.json` file along
* with its license.
*
* ```ts
* import { extensionsByType } from "https://deno.land/std@$STD_VERSION/media_types/extensions_by_type.ts";
*
* extensionsByType("application/json"); // ["json", "map"]
* extensionsByType("text/html; charset=UTF-8"); // ["html", "htm", "shtml"]
* extensionsByType("application/foo"); // undefined
* ```
*
* @module
*/