Skip to content

Commit

Permalink
feat(utils/mime): expose built-in MIME types (#2516)
Browse files Browse the repository at this point in the history
* feat: expose built-in MIME

* rename the export to `mimes`
  • Loading branch information
cometkim committed Apr 30, 2024
1 parent ebce2d0 commit 9f53dc2
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions deno_dist/utils/mime.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ export const getExtension = (mimeType: string): string | undefined => {
}
}

export { baseMimes as mimes }
const baseMimes: Record<string, string> = {
aac: 'audio/aac',
avi: 'video/x-msvideo',
Expand Down
1 change: 1 addition & 0 deletions src/utils/mime.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ export const getExtension = (mimeType: string): string | undefined => {
}
}

export { baseMimes as mimes }
const baseMimes: Record<string, string> = {
aac: 'audio/aac',
avi: 'video/x-msvideo',
Expand Down

0 comments on commit 9f53dc2

Please sign in to comment.