0.1.4 • Published 6 years ago

lambda-http-utils v0.1.4

Weekly downloads
1
License
MIT
Repository
github
Last release
6 years ago

lambda-http-utils

Build Status View on NPM View on NPM codecov

lambda-http-utils is a utility to make it easy to do parameter checking while developing serverless application like AWS Lambda + API Gateway.

Setup

Install:

npm install lambda-http-utils --save-dev

Example

const lambdaUtils = require('lambda-http-utils');

new lambdaUtils.HttpUtils.Builder(headers, body)
      .withHeaderVal('Content-Type', 'application/json')
      .withBody('some_key')
      .build()
      .check()
      .then((data) => {
        // Do something with parsed data...
      })
      .catch((err) => {
        // Something went wrong
      });

License

MIT. See LICENSE for details.

0.1.4

6 years ago

0.1.3

6 years ago

0.1.2

6 years ago

0.1.1

6 years ago

0.1.0

6 years ago