{"id":18485,"library":"lambundaler","title":"lambundaler","description":"A bundler for AWS Lambda functions that browserifies and zips code for deployment. Current stable version is 0.11.1, released with dependency updates addressing a high-severity lodash vulnerability. The package has a slow release cadence (last release in 2018). It differs from other AWS Lambda bundlers by integrating Browserify for bundling and providing options for minification, source maps, native addon compatibility, and optional deployment via the AWS SDK. Supports Node.js >=4.0.0.","status":"maintenance","version":"0.11.1","language":"javascript","source_language":"en","source_url":"https://github.com/cjihrig/lambundaler","tags":["javascript","AWS","lambda","lambda function","bundle","bundler","zip"],"install":[{"cmd":"npm install lambundaler","lang":"bash","label":"npm"},{"cmd":"yarn add lambundaler","lang":"bash","label":"yarn"},{"cmd":"pnpm add lambundaler","lang":"bash","label":"pnpm"}],"dependencies":[{"reason":"Required for deployment option","package":"aws-sdk","optional":true},{"reason":"Used to bundle code","package":"browserify","optional":false}],"imports":[{"note":"CommonJS only; no ESM support.","wrong":"import lambundaler from 'lambundaler';","symbol":"default","correct":"const lambundaler = require('lambundaler');"},{"note":"The module exports a single function, not a named export.","wrong":"import { Lambundaler } from 'lambundaler';","symbol":"Lambundaler","correct":"const Lambundaler = require('lambundaler');"},{"note":"The function is asynchronous; it expects a callback.","wrong":"const bundle = require('lambundaler')(options);","symbol":"callback","correct":"require('lambundaler')(options, callback);"}],"quickstart":{"code":"const Lambundaler = require('lambundaler');\n\nLambundaler({\n  entry: 'lambda.js',\n  export: 'handler',\n  output: 'lambda.zip',\n  minify: true,\n  exclude: ['aws-sdk']\n}, (err, buffer, artifacts) => {\n  if (err) {\n    console.error(err);\n    return;\n  }\n  console.log('Bundle written to lambda.zip');\n});","lang":"javascript","description":"Shows basic usage: bundle a lambda handler, minify, exclude aws-sdk, and write to zip."},"warnings":[{"fix":"Update to version 0.11.1 or later.","message":"lodash dependency may have security vulnerabilities.","severity":"deprecated","affected_versions":"<0.11.1"},{"fix":"Update callback to accept (err, buffer, artifacts).","message":"Callback signature changed: now provides buffer and artifacts.","severity":"breaking","affected_versions":"<0.9.0"},{"fix":"Add 'aws-sdk' to 'files' array if required.","message":"The 'aws-sdk' module is excluded by default when bundling; if needed, include via 'files' option.","severity":"gotcha","affected_versions":"<0.10.0"}],"env_vars":null,"last_verified":"2026-04-25T00:00:00.000Z","next_check":"2026-07-24T00:00:00.000Z","problems":[{"fix":"Run 'npm install browserify --save-dev'.","cause":"browserify not installed","error":"Cannot find module 'browserify'"},{"fix":"Provide absolute path or relative path from project root.","cause":"Entry file path incorrect","error":"Error: ENOENT: no such file or directory"},{"fix":"Use 'const Lambundaler = require(\"lambundaler\")'.","cause":"Importing from ESM style","error":"TypeError: Lambundaler is not a function"}],"ecosystem":"npm","meta_description":null,"install_score":null,"install_tag":null,"quickstart_score":null,"quickstart_tag":null}