const api = require("api"); exports.foo = function(arg1, arg2) { var bar = api.something(arg1); return bar + arg2; };