import { writeFile } from "node:fs/promises";

//#region ../chokidar/dist/esm/writeFileIfChanged.mjs
const writeFileIfChanged = async (path, dataOrStream, { encoding = "utf8" } = {}) => {
	await writeFile(path, dataOrStream, { encoding });
	return true;
};

//#endregion
export { writeFileIfChanged };
//# sourceMappingURL=writeFileIfChanged.mjs.map