@ckeditor/ckeditor5-dev-utils
Version:
Utils for CKEditor 5 development tools packages.
8 lines (7 loc) • 332 B
TypeScript
/**
* Updates JSON file under a specified path.
*
* @param filePath Path to a file on disk.
* @param updateFunction Function that will be called with a parsed JSON object. It should return the modified JSON object to save.
*/
export default function updateJSONFile(filePath: string, updateFunction: (json: object) => object): void;