Last active
November 18, 2019 21:29
-
-
Save dansalias/eb1ba98397f82ba98f991bb7e1d103d0 to your computer and use it in GitHub Desktop.
Lambda Testing Example - capitalise.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const changeCase = require('change-case'); | |
exports.handler = async function(event) { | |
const result = { success: false, name: '' }; | |
if(event.name) { | |
result.name = changeCase.titleCase(event.name); | |
result.success = true; | |
} | |
return result; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment