(length, parts)
| 17 | * @returns The directory path |
| 18 | */ |
| 19 | const getPathDirectory = (length, parts) => { |
| 20 | if (!parts) { |
| 21 | return '' |
| 22 | } |
| 23 | return parts.slice(length).filter(Boolean).join(path.sep) |
| 24 | } |
| 25 | |
| 26 | /** |
| 27 | * Validates URL |
no outgoing calls
no test coverage detected
searching dependent graphs…