I have an ES6 module that exports two constants:
export const foo = \"foo\"; export const bar = \"bar\";
I can do the following in another
It is possible (tested with Node 8.9.4):
const {foo: f, bar: b} = require('module'); console.log(`${f} ${b}`); // foo bar