core3-utils

@wixc3/fs-utils on Github

Home > @wixc3/fs-utils > getPackagePath

getPackagePath() function

Gets path to package directory, closest to the given file path.

Signature:

export declare function getPackagePath(filePath: string, fs: IFileSystem): string | undefined;

Parameters

Parameter Type Description
filePath string
fs IFileSystem

Returns:

string | undefined