mirror of
https://github.com/sasjs/server.git
synced 2025-12-10 11:24:35 +00:00
7 lines
165 B
TypeScript
7 lines
165 B
TypeScript
import path from 'path'
|
|
|
|
export const extractName = (filePath: string) => {
|
|
const extension = path.extname(filePath)
|
|
return path.basename(filePath, extension)
|
|
}
|