Skip to content

amv/node-api-lambda-reverse-string

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 

Repository files navigation

node-api-lambda-reverse-string

AWS API gateway compatible AWS Lambda module for reversing a string.

This module exists mainly for testing purposes.

Expects to be called through the exported handler -function:

var result = require("api-lambda-reverse-string").handler( event, context )

Expects event to contain attribute "string":

{
    "string" : "my fancy string"
}

Expects context to have a function called "done":

{
    "done" : function( error, result ) {
        ...
    }
}

On success calls "done" with a null error and the reversed string:

"gnirts ycnaf ym"

On error calls "done" with an error:

new Error( "Event attribute 'string' did not exist or was not of type string" )

About

AWS API gateway compatible AWS Lambda module for reversing a string

Resources

License

Stars

Watchers

Forks

Packages

No packages published