core3-utils

@wixc3/fs-utils on Github

Home > @wixc3/fs-utils > pathChainToRoot

pathChainToRoot() function

Signature:

export declare function pathChainToRoot(currentPath: string): Generator<string, void, unknown>;

Parameters

Parameter Type Description
currentPath string absolute path to yield parent directory path from

Returns:

Generator<string, void, unknown>