Home > @wixc3/fs-utils > readPackageJson
Read and parse a directory’s package.json
Signature:
export declare function readPackageJson(dirPath: string, fs: IFileSystem): PackageJson;
| Parameter | Type | Description |
|---|---|---|
| dirPath | string | an absolute path to a directory containing package.json |
| fs | IFileSystem | file system |
Returns:
PackageJson