blob: 38c3ad8f9db11af91b34d0ca28c1bc2bd982403c [file] [log] [blame]
// Licensed to the Apache Software Foundation (ASF) under one or more contributor
// license agreements; and to You under the Apache License, Version 2.0.
/**
* Return a simple greeting message for someone.
*
* @param name A person's name.
* @param place Where the person is from.
*/
function main(params) {
var name = params.name || params.payload || 'stranger';
var place = params.place || 'somewhere';
return {payload: 'Hello, ' + name + ' from ' + place + '!'};
}
exports.main = main;