beam-cli
Version:
A beautifully simple CLI for running Lighthouse audits on a statically generated (SSG) website
12 lines (11 loc) • 538 B
TypeScript
/**
* Be sure to wrap in a Try-Catch block
* @param {string} filePath - Path to File, should include directory and extension
*/
export declare const loadJSONFile: (filePath: string) => Promise<Record<string, unknown>>;
/**
* Be sure to wrap in a Try-Catch block
* @param {string} filePath - Path to File, should include directory and extension
* @param {Record<string, any>} contents - Contents to be written as JSON file
*/
export declare const saveJSONFile: (filePath: string, contents: Record<string, any>) => Promise<void>;