0

Description

I have some code in ecmascript5 that I want to switch to ecmascript6:

var debug = require("debug")("express:server");

I checked out some examples:

import * as debug from "debug";

Is the closest thing I could figure out, but it completely leaves out "express:server"

Question

How do I convert double parenthesis require to ecmascript6 in one line?

kemicofa ghost
  • 14,587
  • 5
  • 63
  • 112

0 Answers0