API/api.medcify.app/node_modules/pm2-axon-rpc/example.js
2022-09-26 11:41:44 +05:30

16 lines
261 B
JavaScript

exports.add = function(a, b, fn){
fn(null, a + b);
};
exports.sub = function(a, b, fn){
fn(null, a - b);
};
exports.uppercase = function(str, fn){
fn(null, str.toUpperCase());
};
exports.lowercase = function(str, fn){
fn(null, str.toLowerCase());
};