max-kolodezniy / aws-lambda-local Goto Github PK
View Code? Open in Web Editor NEWRun AWS Lambda functions locally
License: MIT License
Run AWS Lambda functions locally
License: MIT License
Hi,
I have a use case where the event should be passed directly from command line instead of read from file.
I made a very simple change to the code and I'd be happy to provide a pull request for it if you are interested.
Currently my file handler.js, has this code
exports.handleIt = function (event, context, callback) {
callback(null, { message: 'hello' });
};
lambda-local --function handler.js
shows error like:
node_modules\aws-lambda-local\lambda-local.js:138
require(name).handler(event, context, function(error, output) {
^TypeError: require(...).handler is not a function
Shouldn't there be an additional parameter like handler?
Suggedted command should be like lambda-local --handler handler.js --function handleIt
where the function will fallback to the value "handler" ?
How about add a debug support?
It's about 160 now.
BTW : good job.
I was thinking to create a PR to convert this project to TypeScript, is that a good idea ?
Can you please add a non-zero exit code for any failures
I'm using lambda-local in my devDependencies of my system and my npm test function calls it by running ./node_modules/.bin/lambda-local
I'd like to replace lambda-local with aws-lambda-local without having to force users of my package to do a global install.
This tool only supports context-done, fail and succeed. There is no support for callback ?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.