fs-force-write-file-sync
Requirements
- Node >= 6.0.0
Usage
var mkfileSync = ;try let info = ; console; catch error console;
The code above would:
- First, do
force-mkdir
to create a directory'./a/b/c'
- Then, do
fs.writeFileSync
to create file'./a/b/c/d'
with content'Hello, World!!'