// file1.js module.exports = {foo, bar, baz} // file2.js const {foo, bar, baz} = require('./file1'); foo(); baz();