UNPKG

542 BTypeScriptView Raw
1import * as WriteJSONFile from 'write-json-file';
2/**
3 * reads a json file in using load-json-file
4 * this will automatically join the paths if you pass multiple strings with path.join()
5 * can accept http urls
6 */
7export declare function readJSON(filepaths: string | string[]): Promise<any>;
8/**
9 * writes a json file with write-json-file
10 * this will automatically join the paths if you pass an array of strings
11 */
12export declare function writeJSON(filepaths: string | string[], data: any, options?: WriteJSONFile.Options): Promise<void>;