mirror of
https://github.com/sasjs/server.git
synced 2026-01-04 21:30:05 +00:00
feat(api): deployment through zipped/compressed file
This commit is contained in:
6
api/src/utils/extractName.ts
Normal file
6
api/src/utils/extractName.ts
Normal file
@@ -0,0 +1,6 @@
|
||||
import path from 'path'
|
||||
|
||||
export const extractName = (filePath: string) => {
|
||||
const extension = path.extname(filePath)
|
||||
return path.basename(filePath, extension)
|
||||
}
|
||||
Reference in New Issue
Block a user