(path: string)
| 97 | |
| 98 | /** `src/bin/codegraph.ts` -> `src/bin`; a root file -> `project root`. */ |
| 99 | export function directoryOf(path: string): string { |
| 100 | const cut = path.lastIndexOf('/'); |
| 101 | return cut < 0 ? 'project root' : path.slice(0, cut); |
| 102 | } |
| 103 | |
| 104 | /** |
| 105 | * Fold rows into groups, first-seen order. |
no outgoing calls
no test coverage detected