MCPcopy Create free account
hub / github.com/denoland/std / extname

Function extname

path/extname.ts:30–32  ·  view source on GitHub ↗
(path: string | URL)

Source from the content-addressed store, hash-verified

28 * @throws {TypeError} If `path` is a `URL` instance whose protocol is not `file:`.
29 */
30export function extname(path: string | URL): string {
31 return isWindows ? windowsExtname(path) : posixExtname(path);
32}

Callers 1

serveFileFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected