MCPcopy Create free account
hub / github.com/vercel/vercel / splitPath

Function splitPath

packages/cli-exec/src/envpath.ts:31–33  ·  view source on GitHub ↗
(pathValue: string)

Source from the content-addressed store, hash-verified

29 * Splits a PATH value into non-empty directory entries.
30 */
31export function splitPath(pathValue: string): string[] {
32 return pathValue.split(path.delimiter).filter(Boolean);
33}
34
35/**
36 * Reads PATH from an environment object with Windows casing compatibility.

Callers 1

findCommandInPathFunction · 0.90

Calls 2

filterMethod · 0.80
splitMethod · 0.80

Tested by

no test coverage detected