@hoast/process-writefiles

3.2.0 • Public • Published

@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.

Package Sidebar

Install

npm i @hoast/process-writefiles

Weekly Downloads

3

Version

3.2.0

License

MIT

Unpacked Size

3.85 kB

Total Files

6

Last publish

Collaborators

  • redkenrok