nextplugin-temp
Version:
33 lines (29 loc) • 600 B
JavaScript
function hello(node, input, engine) {
input.message = 'hello, ' + input.who + '!';
return input;
}
function add(node, input, engine) {
input.z1 = input.x + input.y
return input;
}
function sub(node, input, engine) {
input.z2 = input.x - input.y
return input;
}
module.exports = {
"plugin": "temp",
"services": [
{
"service": "hello",
"implement": hello
},
{
"service": "add",
"implement": add
},
{
"service": "sub",
"implement": sub
},
]
};