UNPKG

happner

Version:

distributed application engine with evented storage and mesh services

14 lines (10 loc) 245 B
module.exports = function (opt1, opt2) { return new Thing(opt1, opt2); } function Thing(opt1, opt2) { this.opt1 = opt1; this.opt2 = opt2; } Thing.prototype.method = function (callback) { callback(null, this.opt1 + ' ' + this.opt2); }