Some Node JS libraries (e.g. debug) use this pattern with require statements:
var debug = require('debug')('http');
This is basically a require of a function which is then directly invoked.
My question: Is there a similar construct using ES2015 import
statements?
How would you translate such code if you were converting from commonjs to es2015 syntax?