3.1.0 • Published 3 months ago

@hoast/process-custom v3.1.0

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

@hoast/process-custom

Allows you to provide your own custom process functions. Extends base-process where the overridable functions can be provided via the options. Helps you from having to create a package for simple one-off behaviour.

Install

npm install @hoast/process-custom

Options

This package extends the @hoast/base-process package. For more information on how to use this package see the options below as well as the base package.

  • {Function} initialize = null Initialize function.
  • {Function} sequential = null Sequential function.
  • {Function} concurrent = null Concurrent function.
  • {Function} final = null Final function.

  • {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.