This is just something short I have not been able to find out while I've been re-writing my app to be ES6-ready:
Say I had a function with a paramater router exported from a model './app/routes/api' and I wanted to import it in my main app.js with the syntax import 'a' from b, but pass the router Paramater (that has been pre-defined as let router = express.Router(); with it, so that it would be var apiRoutes = require('./app/routes/api')(router); in CommonJS require statements. How could you do that in ES6?