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

lambda-packer

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

lambda-packer

Build and pack a lambda functions written in ES-whatever

  • 0.0.1
  • latest
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

AWS Lambda Packer

This function builds a list of all the dependents of a function using webpack and its node packer and creates a package with only the required files to run in Lambda.

Especially useful when you want to use babel / ES6 features and not have to worry about them running on lambda's ancient node version (v0.10)

Useage

// in a gulpfile / task runner / whatever
import lambdaPacker from 'lambda-packer';

function deployToLambda() {
  const options {
    zip: true, // set to true to pack a zip file for sending to AWS
    functionsDir: './src/functions'
  };

  lambdaPacker(options).then(zipBuffer =>
    // send to AWS using `aws-sdk`
    // see the AWS docs for details on that
    sendToLambda(zipBuffer)
  );
}

FAQs

Package last updated on 12 Jan 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