NodeJs membutuhkan semuanya tanpa awalan
// file1.js
module.exports = {foo, bar, baz}
// file2.js
const {foo, bar, baz} = require('./helpers');
foo();
baz();
Bewildered Boar