smallorange-local-lambda-invokerdeprecated

Simple Local AWS Lambda Invoker

Usage no npm install needed!

<script type="module">
  import smallorangeLocalLambdaInvoker from 'https://cdn.skypack.dev/smallorange-local-lambda-invoker';
</script>

README

Simple AWS Local Lambda Invoker

Usage

    const path = require('path');
    const {
        load,
        invoke
    } = require('smallorange-local-lambda-invoker');

    load({
        connect: path.resolve('../my-function-path')
    });

    invoke({
            FunctionName: 'myFunctionName',
            Payload: JSON.stringify({
                key: 'value'
            })
        }, (err, result) => console.log);