3.2.0 • Published 2 years ago
@hoast/process-writefiles v3.2.0
@hoast/process-writefiles
Write data to the filesystem.
Install
npm install @hoast/process-writefilesOptions
{String} directory = 'dst'Directory path, either absolute or relative to the working directory.{Object} directoryOptions = {}fs.mkdir options.{String} property = 'contents'Dot notation path to the data property which should be used as the file's contents.{Object} writeOptions = { encoding: 'utf8' }fs.writeFile.{Function} filter = nullCustom filter function. The item data is given as the parameter. Returntrueif it should be processed, returnfalseif this processor should be skipped.{Number} logLevel = 2Log level given to the logger.