UNPKG

find-and-read-package-json

Version:

Find and read data from a package.json file.

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