Home > @wixc3/fs-utils > getPackageName
Gets package name.
Signature:
export declare function getPackageName(dirPath: string, fs: IFileSystem): string | undefined;
| Parameter | Type | Description |
|---|---|---|
| dirPath | string | an absolute path to a directory containing package.json |
| fs | IFileSystem | file system |
Returns:
string | undefined