UNPKG

@hyperse/dependency-sync

Version:

A comprehensive Node.js utility for managing dependencies in monorepo environments, specifically designed for Hyperse plugin ecosystems.

11 lines (10 loc) 288 B
/** * Read a JSON file and return the parsed object. * @example * ```ts * const json = readJson<{ name: string }>('package.json'); * ``` * @param fileFrom - The path to the JSON file. * @returns The parsed JSON object. */ export declare function readJson<T>(fileFrom: string): T;