UNPKG

happner

Version:

distributed application engine with evented storage and mesh services

11 lines (8 loc) 199 B
module.exports.Thing = Thing; function Thing(opt1, opt2) { this.opt1 = opt1; this.opt2 = opt2; } Thing.prototype.method = function (callback) { callback(null, this.opt1 + ' ' + this.opt2); }