Synchronously write a file and create its ancestor directories if needed
const readFileSync = ;const outputFileSync = ;;; //=> 'Hi!'
This module is very similar to fs-extra's
fs.outputFileSync method, but different in the following points:
const statSync = ;const outputFileSync = ;;mode; //=> 33260
npm install output-file-sync
const outputFileSync = ;
It writes the data to a file synchronously. If ancestor directories of the file don't exist, it creates the directories before writing the file.
const statSync = ;const outputFileSync = ;// When the directory `foo/bar` exists;; //=> true; //=> true
It returns the directory path just like mkdirp.sync:
Returns the first directory that had to be created, if any.
const dir = ;dir === path; //=> true
Set the mode of a file, overriding
Set the modes of directories, overriding
;fsmode; //=> '40745'fsmode; //=> '100644'
ISC License © 2017 - 2018 Shinnosuke Watanabe