Repository URL to install this package:
|
Version:
1.0.2 ▾
|
export function getFileAndPath(file: string) {
const split = file.split('/')
return {
file: split.pop(),
paths: split.join('/'),
dir: split.join('/'),
}
}