Skip to content

Function: root()

root(cwd?): string | undefined

Resolve the nearest project root without walking above its npm or Git boundary.

string

string | undefined