MCPcopy Create free account
hub / github.com/melonjs/melonJS / getBasename

Function getBasename

packages/melonjs/src/utils/file.ts:14–16  ·  view source on GitHub ↗
(path: string)

Source from the content-addressed store, hash-verified

12 * @returns the base name without path information.
13 */
14export function getBasename(path: string) {
15 return path.replace(PATH, "").replace(EXT, "");
16}
17
18/**
19 * return the extension of the file in the given path

Callers 5

getImageFunction · 0.90
preloadMTLFunction · 0.90
getMethod · 0.90
constructorMethod · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected