core3-utils

@wixc3/fs-utils on Github

Home > @wixc3/fs-utils > readPackageJson

readPackageJson() function

Read and parse a directory’s package.json

Signature:

export declare function readPackageJson(dirPath: string, fs: IFileSystem): PackageJson;

Parameters

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

Returns:

PackageJson