mirror of
https://github.com/denoland/std.git
synced 2024-11-22 04:59:05 +00:00
docs(media_types): module doc (#4498)
This commit is contained in:
parent
749fefe2b6
commit
26093f9670
@ -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
|
||||
*/
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user