In many places in the gecko sources there are lines like this
const { classes: Cc, interfaces: Ci, utils: Cu } = Components;
which does not work in node. Is there a similar way to set multiple local scope variables from a javascript object. If there is no general way to do this, what is the best way of getting multiple objects from a module to local scope? ie
mod.js
var a = 1;
module.exports.a = a;
var b = 1;
module.exports.b = b;
var c = 1;
module.exports.c = c;
var d = 1;
module.exports.d = d;
src.js
var mod = require('./mod'); // or something better
var a = mod.a,
b = mod.b,
c = mod.c,
d = mod.d;
// Use a, b, c, d as if they were defined here...
console.log(a) // 1