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

getExtension(path) → string

Get extension of file

Kind: global function
Returns: string - extension of file

ParamType
pathstring

checkExtension(path, extensions) → boolean

Check if extension ist correct

Kind: global function

ParamType
pathstring
extensionsArray.<string>

getFilename(path) → string

Get filename without extension

Kind: global function
Returns: string - filename

ParamType
pathstring