MCPcopy
hub / github.com/directus/directus / getFileExt

Function getFileExt

packages/extensions-sdk/src/cli/utils/file.ts:1–3  ·  view source on GitHub ↗
(path: string)

Source from the content-addressed store, hash-verified

1export function getFileExt(path: string): string {
2 return path.substring(path.lastIndexOf('.') + 1);
3}

Callers 2

getLanguageFromPathFunction · 0.85
getRollupOutputOptionsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected