Socket
Socket
Sign inDemoInstall

@ydv/function

Package Overview
Dependencies
Maintainers
6
Versions
25
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@ydv/function

``` npm install --save @ydv/function ```


Version published
Weekly downloads
35
increased by150%
Maintainers
6
Weekly downloads
 
Created
Source

@ydv/function

npm install --save @ydv/function

Creates a wrapper around a Lambda handler.

  1. Enables promise support. Return a value from the handler, and it's assumed to be 200 OK JSON.
  2. Sane error handling. Any error object will be passed as response body with error.statusCode || 500.
  3. Logging on error, adds logger to context
  4. Calls options.runBefore(event, context) before running handler
  5. Automatically parses incoming event.body to object and event.query to object (if applicable)

FAQs

Package last updated on 14 Nov 2018

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc