Registry / aws / lambundaler

lambundaler

JSON →
library0.11.1jsnpmunverified

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.

npm install lambundaler
INSTALL
IMPORT
SIG · LAMBUNDALER
L
lambundaler
awsjavascriptv0.11.1
Install
Import
Disk
Pass rate
0/ 6
Env Coverage0 / 6
glibc
1822
musl
1822
Install & Compatibility
Where this runs
tested against v? · npm install
Install × environment matrix
Each cell = how many times install + import succeeded across repeated harness runs. Partial = flaky.
glibc = Debian/Ubuntu slim · musl = Alpine Linux
musl
node 18226 runs
build_error
glibc
node 18226 runs
build_error
Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

default
const lambundaler = require('lambundaler');
import lambundaler from 'lambundaler';
CommonJS only; no ESM support.
Lambundaler
const Lambundaler = require('lambundaler');
import { Lambundaler } from 'lambundaler';
The module exports a single function, not a named export.
callback
require('lambundaler')(options, callback);
const bundle = require('lambundaler')(options);
The function is asynchronous; it expects a callback.

Shows basic usage: bundle a lambda handler, minify, exclude aws-sdk, and write to zip.

const Lambundaler = require('lambundaler'); Lambundaler({ entry: 'lambda.js', export: 'handler', output: 'lambda.zip', minify: true, exclude: ['aws-sdk'] }, (err, buffer, artifacts) => { if (err) { console.error(err); return; } console.log('Bundle written to lambda.zip'); });
lambundaler --version
Debug
Known issues
deprecatedlodash dependency may have security vulnerabilities.
fix
Update to version 0.11.1 or later.
affects: <0.11.1
breakingCallback signature changed: now provides buffer and artifacts.
fix
Update callback to accept (err, buffer, artifacts).
affects: <0.9.0
gotchaThe 'aws-sdk' module is excluded by default when bundling; if needed, include via 'files' option.
fix
Add 'aws-sdk' to 'files' array if required.
affects: <0.10.0
Errors
Common errors & fixes
Cannot find module 'browserify'
browserify not installed
fix
Run 'npm install browserify --save-dev'.
Error: ENOENT: no such file or directory
Entry file path incorrect
fix
Provide absolute path or relative path from project root.
TypeError: Lambundaler is not a function
Importing from ESM style
fix
Use 'const Lambundaler = require("lambundaler")'.
Upgrade
Version history
0.11.1latest on npm
Audit
Dependencies
aws-sdkoptionalRequired for deployment option
browserifyrequiredUsed to bundle code
Agent activity
6 hits · last 30 days
node
6
Resources
lambundaler — npm install lambundaler · libregistry