UNPKG

find-and-read-package-json

Version:

Find and read data from a package.json file.

11 lines (10 loc) 248 B
export interface Options { cache?: { [file: string]: any; }; transform?: (json: any) => any; } export default function findAndReadPackageJson(directory: string, options?: Options): Promise<{ file: string; json: any; }>;