I have an ES6 module that exports two constants:
export const foo = \"foo\"; export const bar = \"bar\";
I can do the following in another
Sure, just use the object destructuring syntax:
const { old_name: new_name, foo: f, bar: b } = require('module');