(path: string, name: string)
| 14 | } |
| 15 | |
| 16 | export function parseName(path: string, name: string): Location { |
| 17 | const nameWithoutPath = basename(normalize(name)); |
| 18 | const namePath = dirname(join(normalize(path), name)); |
| 19 | |
| 20 | return { |
| 21 | name: nameWithoutPath, |
| 22 | path: normalize('/' + namePath), |
| 23 | }; |
| 24 | } |
no test coverage detected