Module: serve-function-module-template

Template for a function module that can be served by serve-function.
Source:

Methods

(inner) serveFunctionModuleTemplate(options, callback)

This example function illustrates the format required by the serve-function module. The function should accept an options object containing any function parameters, and a callback to handle the results
Parameters:
Name Type Description
options options contains all function parameters
callback callback handles results
Source:

Type Definitions

callback(error, result)

This comment describes the callback function accepted by serveFunctionModuleTemplate.
Parameters:
Name Type Description
error Error describes any errors that may have occurred
result String | Number of this function call
Source:

options

Define the options object.
Type:
  • Object
Properties:
Name Type Description
x String | Number anything that can be added
y String | Number anything that can be added
z String | Number anything that can be added
Source: