core3-utils

@wixc3/fs-utils on Github

Home > @wixc3/fs-utils > getPackageName

getPackageName() function

Gets package name.

Signature:

export declare function getPackageName(dirPath: string, fs: IFileSystem): string | undefined;

Parameters

Parameter Type Description
dirPath string an absolute path to a directory containing package.json
fs IFileSystem file system

Returns:

string | undefined