New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

@dotmh/lambda-controller-request-body

Package Overview
Dependencies
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@dotmh/lambda-controller-request-body

Add methods for handling the request body to lambda controller

latest
Source
npmnpm
Version
1.2.4
Version published
Maintainers
1
Created
Source

Lambda Controller Logo

Lambda Control - Request Body Plugin

DotMH Future Gadget Lab Lambda Controller Plugin XO code style Codacy Badge Codacy Badge Build NPM npm bundle size Contributor Covenant

Adds http request body handling methods support to the lambda controller

NOTE Does not support multipart forms.

Installation

To Install

npm i @dotmh/lambda-controller-request-body

Requires Lambda Controller to be installed. Lambda Controller is a peer dependancy and so won't be installed automatically

Usage

To use the functionality added by this plugin you will need to add it to your controller instance.

    const Controller = require('@dotmh/lambda-controller');
    const requestBody = require('@dotmh/lambda-controller-request-body')

    class MyController extends Controller {
        constructor(event, ctx, callback) {
            super(event, ctx, callback) {
                this.add(requestBody);
            }
        }
    }

You will then be able to access the methods and properties added by Request Body in your controller using this

Documentation

For the API documentation see https://dotmh.github.io/lambda-controller-request-body/

Or to read locally

npm run readdocs

Licence

This package is Treeware. If you use it in production, then we ask that you buy the world a tree to thank us for our work. By contributing to the Treeware forest you’ll be creating employment for local families and restoring wildlife habitats.

Credits

Logo design by @dotmh

Keywords

DotMH

FAQs

Package last updated on 12 Jun 2020

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts