# getExtension

**Kind:** Function

**Source:** [`src/utils/mime.ts`](https://github.com/honojs/hono/blob/main/src/utils/mime.ts#L18)

**Part of:** [Utils](subsystem-src-utils)

## Signature

```ts
function getExtension(mimeType: string): string | undefined
```

## Parameters

| Name | Type |
|---|---|
| `mimeType` | `string` |

**Returns:** `string | undefined`

## Used by

1 reference from 1 file. Each is a place in this repository where the symbol is actually used — go read one rather than trusting an example.

### Imported by (1)

- `DEFAULT_OUTPUT_DIR` — `src/helper/ssg/ssg.ts`:27
