<commit_before># aws-lambda-function-sandbox-runner
Run AWS Lambda Functions on your local computers, for testing purposes

##Introduction
When you write AWS Lambda Functions, there is not a natural way to test the code in your computer or personal sandbox. This library helps you to run any AWS Lambda Function on your own environment.

##Installation
```
npm install aws-lambda-function-sandbox-runner
```


###Real World example:
```
mkdir testing
cd testing
touch mylambda.js//edit and put the content showed below
npm install aws-lambda-function-sandbox-runner
node node_modules/aws-lambda-function-sandbox-runner/run.js mylambda
```

You should see this:
```
AWS Lambda Function was executed without issues.
Output: worked!
```

content of mylambda.js:
```js
exports.handler = function(event, context) {
  context.succeed('worked!');
};
```

<commit_msg>Adding deployment info<commit_after># aws-lambda-function-sandbox-runner
Run AWS Lambda Functions on your local computers, for testing purposes

##Introduction
When you write AWS Lambda Functions, there is not a natural way to test the code in your computer or personal sandbox. This library helps you to run any AWS Lambda Function on your own environment.

##Installation
```
npm install aws-lambda-function-sandbox-runner
```


###Real World example:
```
mkdir testing
cd testing
touch mylambda.js//edit and put the content showed below
npm install aws-lambda-function-sandbox-runner
node node_modules/aws-lambda-function-sandbox-runner/run.js mylambda
```

You should see this:
```
AWS Lambda Function was executed without issues.
Output: worked!
```

content of mylambda.js:
```js
exports.handler = function(event, context) {
  context.succeed('worked!');
};
```

##Deployment of your Lambda Function
Some Node.js plugins do the deployment of your code via aws cli, I don't suggest you that, because you are missing testing coverage and continuous integration. I suggest you to use a continous integration like travis that deploys your code to Amazon S3 and to link your Lambda Function to the S3 bucket of your code.

{'fraction_non_alphanumeric': 0.08353336533845415, 'fraction_numerical': 0.0009601536245799327, 'mean_word_length': 4.903682719546742, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6971833', 'n_tokens_mistral': 596, 'n_tokens_neox': 559, 'n_words': 255}