@hoast/process-writefiles
Write data to the filesystem.
Install
npm install @hoast/process-writefiles
Options
-
{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 = null
Custom filter function. The item data is given as the parameter. Returntrue
if it should be processed, returnfalse
if this processor should be skipped. -
{Number} logLevel = 2
Log level given to the logger.