Const
eslint-disable-next-line no-unused-vars
Optional
results: string[]remove dir or file recursive asynchronously
Optional
callback: NoParamCallbackWrite to file recursively (synchronous)
Promise.resolve(path);
// write directly
const input = write('/folder/file.txt', {'a':'v'});
// log here
console.log('written successfully');
// or log using async
input.then((file)=> console.log('written to', file));
Make directory recursive default (only not exists dir)
Returns