lib/utils.ts
Functions
- getExtension(path) →
string
Get extension of file
- checkExtension(path, extensions) →
boolean
Check if extension ist correct
- getFilename(path) →
string
Get filename without extension
string
getExtension(path) → Get extension of file
Kind: global function
Returns: string
- extension of file
Param | Type |
---|---|
path | string |
boolean
checkExtension(path, extensions) → Check if extension ist correct
Kind: global function
Param | Type |
---|---|
path | string |
extensions | Array.<string> |
string
getFilename(path) → Get filename without extension
Kind: global function
Returns: string
- filename
Param | Type |
---|---|
path | string |