// Copyright 2018-2024 the Deno authors. All rights reserved. MIT license.
// This module is browser compatible.

/**
 * Utility functions for media types (MIME types).
 *
 * This API is inspired by the GoLang {@linkcode https://pkg.go.dev/mime | mime}
 * package and {@link https://github.com/jshttp/mime-types | jshttp/mime-types},
 * and is designed to integrate and improve the APIs from
 * {@link https://deno.land/x/media_types | x/media_types}.
 *
 * The `vendor` folder contains copy of the
 * {@link https://github.com/jshttp/mime-types | jshttp/mime-db} `db.json` file,
 * along with its license.
 *
 * ```ts
 * import { contentType, extensionsByType, getCharset } from "@std/media-types";
 * import { assertEquals } from "@std/assert/assert-equals";
 *
 * assertEquals(extensionsByType("application/json"), ["json", "map"]);
 *
 * assertEquals(contentType(".json"), "application/json; charset=UTF-8");
 *
 * assertEquals(getCharset("text/plain"), "UTF-8");
 * ```
 *
 * @module
 */

export * from "./content_type.ts";
export * from "./extension.ts";
export * from "./extensions_by_type.ts";
export * from "./format_media_type.ts";
export * from "./get_charset.ts";
export * from "./parse_media_type.ts";
export * from "./type_by_extension.ts";

// denoCacheMetadata={"headers":{"cache-control":"public, max-age=31536000, immutable","etag":"\"f3bb3c49b7b1c4414a8c0e845ccc4f5f\"","cross-origin-resource-policy":"cross-origin","x-jsr-backend":"modules","alt-svc":"h3=\":443\"; ma=86400","access-control-expose-headers":"*","content-type":"text/typescript","x-robots-tag":"noindex","report-to":"{\"group\":\"cf-nel\",\"max_age\":604800,\"endpoints\":[{\"url\":\"https://a.nel.cloudflare.com/report/v4?s=Fv39bkqIRLAYBDWqiEdQWUFLzZwNgkN3NmIqzXtHXblkvEM4bmwupM4uHiIg3sZgLeB7vlB9wxielliv9JBE5l94U0NcyNbPeXtZzyhbT7qE1xMFwsIVuGk%3D\"}]}","server":"cloudflare","date":"Tue, 28 Jul 2026 12:31:15 GMT","content-security-policy":"default-src 'none'; script-src 'none'; style-src 'none'; img-src 'none'; font-src 'none'; connect-src 'none'; frame-src 'none'; object-src 'none'; frame-ancestors 'none'; sandbox; form-action 'none';","x-content-type-options":"nosniff","set-cookie":"__cf_bm=Y7WFf53vIZwkMBkxPy_HUiQfJG_35WvJNgnpOZBEPI4-1785241874.9367304-1.0.1.1-U.QeW6z4gw3xjN9cnbNKPZNmJfdeDXYAf5p2Jy0MB9ChzkeKn.1lgEFfpUYcmyscVCqRiTXu3DPOC4_eBT6f0wSBbPE_yy6Bk5rrETnc4o_QQCqWjFCo3f8gL8ZCk4rA; HttpOnly; SameSite=None; Secure; Path=/; Domain=jsr.io; Expires=Tue, 28 Jul 2026 13:01:15 GMT","content-length":"1255","cf-ray":"a223e6564ea57db6-LAX","access-control-allow-origin":"*","nel":"{\"report_to\":\"cf-nel\",\"success_fraction\":0.0,\"max_age\":604800}","vary":"Origin"},"url":"https://jsr.io/@std/media-types/0.224.1/mod.ts","time":1785241875}