2.4.1 ⢠Published 1 year ago
lambda-layer-packager v2.4.1
Lambda Layer Packager
A command-line utility for packaging Node.js dependencies into AWS Lambda Layers. Automatically compresses node_modules into deployment-ready .zip files compatible with AWS Lambda, Serverless Framework, and Terraform.
Features
- Supports multiple package managers (npm, yarn, pnpm)
- Compatible with ES Modules (ES2022) and CommonJS
- Configurable output directory structure
- Production dependencies filtering
- Simple command-line interface
Installation
# Global installation
npm install -g lambda-layer-packager@latest
# Project-specific installation
npm install --save-dev lambda-layer-packager@latestVerify installation: packager --version
Command Reference
List Available Commands
packager commandsPackage Dependencies
packager package [options]Options:
--name: Output filename (default: "layer.zip")--package-manager: Package manager selection (default: "npm")--dir: Target directory in archive (default: "nodejs/default")--only-prod: Include only production dependencies (default: true)--help: Show command help
Dependencies
This project leverages the following open-source packages:
figlet- ASCII art generationcommander- CLI frameworkarchiver- Archive creationspinnies- Terminal spinners
All dependencies are MIT licensed.
License
MIT License - See package.json for details.
š¦ Built with open source. Contributions welcome!