@public.firetail.io/firetail-js-lambda
TypeScript icon, indicating that this package has built-in type declarations

1.0.1 • Public • Published

Firetail Javascript Lambda Middleware

Overview

The purpose of this module is to correctly log out the AWS Lambda event and response payload to allow the firetail extension to then send it on to the firetail logging api

Code Coverage codecov License

The npm version is a function that wraps around an event handler function in a AWS Lambda to extract the event and response payloads into a base64 logging message.

Installation

Install the module into your project

Implementing Middleware in lambda function

import * as firetailWrapper from '@public.firetail.io/firetail-js-lambda'

module.exports.myFn = firetailWrapper((event,context) => {
  // do work here..
  return {
    statusCode:200,
    body: JSON.stringify(data)
  };
});

Readme

Keywords

none

Package Sidebar

Install

npm i @public.firetail.io/firetail-js-lambda

Weekly Downloads

1

Version

1.0.1

License

LGPL

Unpacked Size

60.1 kB

Total Files

16

Last publish

Collaborators

  • timofiretail
  • joshua-firetail
  • repofiretail
  • rileyfiretail