MCPcopy Create free account
hub / github.com/code-forge-io/Remix-Forge / getFileName

Function getFileName

src/utils/file.ts:18–21  ·  view source on GitHub ↗
(filePath: string)

Source from the content-addressed store, hash-verified

16};
17
18export const getFileName = (filePath: string) => {
19 const fileName: string = filePath.split("/").pop()!;
20 return fileName;
21};
22
23export const getFileInfo = (filePath: string) => {
24 const fileName = getFileName(filePath);

Callers 2

getFileInfoFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected