@anio-fs/int--write-atomic-file
v3.0.1
Published
Atomically write a file.
Downloads
9
Readme
@anio-fs/int--write-atomic-file
Atomically write a file.
import {writeAtomicFile, writeAtomicFileSync} from "@anio-fs/int--write-atomic-file"
console.log(
await writeAtomicFile("/tmp/test", "data")
)
console.log(
writeAtomicFileSync("/tmp/test", "data")
)