Skip to content
turbotPublic

About

Turbot wrapper for control functions.

Topics

Resources

Code of conduct

Security policy

Stars

1 star

Watchers

4 watching

Forks

Latest commit

 

History

203 Commits

Folders and files

Repository files navigation

@turbot/fn

Turbot wrapper for control functions.

Install

npm install --save @turbot/fn

Usage

This package returns a function with the signature expected by AWS Lambda for node. It should be assigned to the handler entry point for the control.

const tfn = require("@turbot/fn");
exports.control = tfn((turbot, $, callback) => {
  // your code here
});

Test mode

If TURBOT_TEST is truthy then the function will be run in test mode:

  • Input should be passed directly (no SNS message wrapper)
  • The callback results will be { turbot: {/*data*/}, result: {/*data*/} }.
  • Commands will not be published to SNS.

About

Turbot wrapper for control functions.

Topics

Resources

Code of conduct

Security policy

Stars

1 star

Watchers

4 watching

Forks

Releases

Used by

Contributors

Languages