3.2.0 • Published 3 months ago

@hoast/process-writefiles v3.2.0

Weekly downloads
1
License
MIT
Repository
github
Last release
3 months ago

@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. Return true if it should be processed, return false if this processor should be skipped.

  • {Number} logLevel = 2 Log level given to the logger.