Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

lambda-wrapper

Package Overview
Dependencies
Maintainers
1
Versions
13
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

lambda-wrapper

Wrapper for running Amazon Lambda modules locally

  • 0.0.6
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
4.2K
decreased by-47.46%
Maintainers
1
Weekly downloads
 
Created
Source

lambda-wrapper

Wrapper for running lambda modules locally during development

Use

Initializing the local Lambda

// Loads the module in myModule/mymod.js
var lambdaFunc = require('myModule/mymod.js');
var lambda = require('lambda-wrapper').wrap(lambdaFunc);

Running the function in the Lambda module

var event = { key1: 'val1', key2: val2 };
lambda.run({Payload: event}, function(err, data) {
    if (err) {
        ... handle error
    }
    ... process data returned by the Lambda function
})

Release History

  • 2015/09/01 - v0.0.2 - Pass module object rather than path to init(). Removed automatic loading of module.
  • 2015/07/23 - v0.0.1 - Initial version of module

License

Copyright (c) 2015 SC5, licensed for users and contributors under MIT license. https://github.com/SC5/aws-document-cache/blob/master/LICENSE

Bitdeli Badge

Keywords

FAQs

Package last updated on 26 Apr 2016

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