write
Write data to a file, replacing the file if it already exists and creating any intermediate directories if they don't already exist. Thin wrapper around node's native fs methods.
jsonc
Everything you need in JSON land. Parse JSON with comments, stringify objects with circular references, etc...
@visulima/fs
Human friendly file system utilities for Node.js
write-pretty-file
Write file and automatically format it with your projects prettier config