
Security News
Crates.io Implements Trusted Publishing Support
Crates.io adds Trusted Publishing support, enabling secure GitHub Actions-based crate releases without long-lived API tokens.
lambda-packer
Advanced tools
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)
// 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
Build and pack a lambda functions written in ES-whatever
We found that lambda-packer demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
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.
Security News
Crates.io adds Trusted Publishing support, enabling secure GitHub Actions-based crate releases without long-lived API tokens.
Research
/Security News
Undocumented protestware found in 28 npm packages disrupts UI for Russian-language users visiting Russian and Belarusian domains.
Research
/Security News
North Korean threat actors deploy 67 malicious npm packages using the newly discovered XORIndex malware loader.