MCPcopy Create free account
hub / github.com/heygen-com/hyperframes / isMediaFile

Function isMediaFile

packages/studio/src/utils/mediaTypes.ts:8–10  ·  view source on GitHub ↗
(path: string)

Source from the content-addressed store, hash-verified

6export const MEDIA_EXT = /\.(mp4|webm|mov|mp3|wav|ogg|m4a|aac|jpg|jpeg|png|gif|webp|svg|ico)$/i;
7
8export function isMediaFile(path: string): boolean {
9 return MEDIA_EXT.test(path);
10}

Callers 2

StudioLeftSidebarFunction · 0.90
useFileManagerFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected