πŸš€ Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more β†’
Socket
Sign inDemoInstall
Socket

serverless-analyze-bundle-plugin

Package Overview
Dependencies
Maintainers
0
Versions
15
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

serverless-analyze-bundle-plugin

A Serverless plugin to analyze the bundle of a lambda function.

2.1.0
latest
Source
npm
Version published
Weekly downloads
7.4K
25.6%
Maintainers
0
Weekly downloads
Β 
Created
Source

Serverless analyze bundle plugin

A Serverless plugin to analyze the bundle of a lambda function.

Prerequisites πŸ““

  • Use serverless-esbuild to bundle your functions
  • Only individually bundled functions can be analyzed

Usage πŸ“¦

Install with

pnpm add -D serverless-analyze-bundle-plugin

Add serverless-analyze-bundle-plugin to your serverless plugins.

Run the following command to analyze a function:

serverless package --analyze myFunctionName

Options πŸ› 

--analyze

The name of the function to analyze.

--template

The bundle template to use. Should be one of sunburst, treemap, network. Defaults to treemap.

Using the CDK instead of the Serverless Framework? πŸ€”

No worries! Check out my library cdk-bundle-analyzer that does the same thing for the CDK πŸš€

FAQs

Package last updated on 11 Feb 2025

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