Skip to content

anio-fs-org/int--write-atomic-file-json

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

@anio-fs/int--write-atomic-file-json

Atomically write a JSON file.

import {writeAtomicFileJSON, writeAtomicFileJSONSync} from "@anio-fs/int--write-atomic-file-json"

console.log(
	await writeAtomicFileJSON("/tmp/test", "data")
)

console.log(
	writeAtomicFileJSONSync("/tmp/test", "data")
)