mirror of
https://github.com/sasjs/server.git
synced 2026-01-05 05:40:06 +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)
|
|
}
|