I would like to do it
var debug = require('debug')('myapp');
... in ES6 without creating an additional variable. It can be done?
import Debug from 'debug'; const debug = Debug('myapp');
(as lemieuxster said ... referring to the fact that he is still listed in unanswered questions)