I see a lot of node librairies using this syntax:
var lib = require('lib')();
I was wondering what was the ES6 equivalent ?
For now, I use the following syntax:
import libfunc from 'lib';
var lib = libfunc();
Is there a more elegant way to perform this import ?