
Security News
/Research
Popular node-ipc npm Package Infected with Credential Stealer
Socket detected malicious node-ipc versions with obfuscated stealer/backdoor behavior in a developing npm supply chain attack.
@polarity-dev/lambda-local-runner
Advanced tools
This project provides a local environment to run and test AWS Lambda functions using Node.js.
This project provides a local environment to run and test AWS Lambda functions using Node.js.
npm install -g @polarity-dev/lambda-local-runner
echo '{ "my-function": "/path/to/function.js" }' > lambda.json
lambda-local --config lambda.json
npm install
cp lambda-sample.json lambda.json
npm run dev a
Install Dependencies. Run the following command to install necessary dependencies:
npm install
Create Lambda Mapping Settings. Copy the sample Lambda configuration file:
cp lambda-sample.json lambda.json
Then, fill in the details for the Lambda function you intend to manage.
To start the local Lambda server, execute:
npm run dev
Once the server is running, you can invoke your local Lambda functions by using localhost:6789 as the endpoint. Below is an example of how to call a Lambda function using the AWS SDK for JavaScript:
import { LambdaClient, InvokeCommand } from "@aws-sdk/client-lambda"
const lambdaClient = new LambdaClient({
region: "eu-west-1",
endpoint: "http://localhost:6789",
})
lambdaClient.send(
new InvokeCommand({
FunctionName: "my-function",
Payload: JSON.stringify({ hello: "world" })
})
)
.then(console.log)
.catch(console.log)
A minimal example of a JavaScript Lambda function can be found in tests/my-function/index.js
A minimal example of a JavaScript Lambda invoking can be found in tests/invoke-test.ts. To test run the following command:
npm run test:invoke
FAQs
This project provides a local environment to run and test AWS Lambda functions using Node.js.
We found that @polarity-dev/lambda-local-runner demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

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.

Security News
/Research
Socket detected malicious node-ipc versions with obfuscated stealer/backdoor behavior in a developing npm supply chain attack.

Security News
TeamPCP and BreachForums are promoting a Shai-Hulud supply chain attack contest with a $1,000 prize for the biggest package compromise.

Security News
Packagist urges PHP projects to update Composer after a GitHub token format change exposed some GitHub Actions tokens in CI logs.