188
rated 0 times
[
193]
[
5]
/ answers: 1 / hits: 34749
/ 9 Years ago, thu, july 23, 2015, 12:00:00
Previously:
var debug = require('debug')('http')
, http = require('http')
, name = 'My App';
With es6, how can I import and invoke right away like the first line?
import debug from 'debug'();
is a no no?
More From » ecmascript-6