ethers.js/lib.esm/_admin/utils/fs.js
2022-09-05 16:57:11 -04:00

8 lines
237 B
JavaScript

import fs from "fs";
import { resolve } from "./path.js";
export function atomicWrite(path, value) {
const tmp = resolve(".atomic-tmp");
fs.writeFileSync(tmp, value);
fs.renameSync(tmp, path);
}
//# sourceMappingURL=fs.js.map