Gathering detailed insights and metrics for lambda-leak
Gathering detailed insights and metrics for lambda-leak
Gathering detailed insights and metrics for lambda-leak
Gathering detailed insights and metrics for lambda-leak
npm install lambda-leak
Module System
Min. Node Version
Typescript Support
Node Version
NPM Version
4 Stars
6 Commits
1 Forks
4 Watching
2 Branches
1 Contributors
Updated on 14 Apr 2022
JavaScript (100%)
Cumulative downloads
Total Downloads
Last day
-36.1%
5,025
Compared to previous day
Last week
-4.6%
30,719
Compared to previous week
Last month
21.3%
111,307
Compared to previous month
Last year
25.9%
1,373,437
Compared to previous year
Simple utility to detect resource leaks in AWS Lambda handlers using Node.js that can lead to expensive charges lengthy operations or failures from timeouts.
Install via npm.
npm install lambda-leak
The lambda-leak
detector should be used within a unit testing environment, like mocha
, to capture and diagnose potential resource leaks. The
following example demonstrates how to use the leak detector inside a unit test.
1'use strict'; 2 3const lambdaLeak = require( 'lambda-leak' ); 4 5const handler = require( 'my-lambda-handler-module' ); 6 7describe( 'myModule', function() { 8 9 describe( 'handler', function() { 10 11 it( 'detect leak in my handler', function( done ) { 12 13 const state = lambdaLeak.capture(); 14 15 handler( {/* event*/, { /* context */}, function( err, result ) { 16 17 if( err ) { 18 19 return done( err ); 20 } 21 22 let difference = state..getDifferenceInHandles(); 23 24 if( difference.length > 0 ) { 25 26 console.log( 'leaks', difference ); 27 28 // leaks detected 29 done( new Error( 'leaks detected' ) ); 30 } 31 32 done(); 33 }); 34 }); 35 }); 36});
lambda-leak
lambda-tester
- reduce the time and effort to test AWS Lambda handlers.We'd love to get feedback on how you're using lambda-tester and things we could add to make this tool better. Feel free to contact us at feedback@vandium.io
No vulnerabilities found.
Reason
no binaries found in the repo
Reason
0 existing vulnerabilities detected
Reason
license file detected
Details
Reason
no SAST tool detected
Details
Reason
Found 0/6 approved changesets -- score normalized to 0
Reason
0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
security policy file not detected
Details
Reason
project is not fuzzed
Details
Reason
branch protection not enabled on development/release branches
Details
Score
Last Scanned on 2024-11-18
The Open Source Security Foundation is a cross-industry collaboration to improve the security of open source software (OSS). The Scorecard provides security health metrics for open source projects.
Learn More