I'm trying to deconstruct a require assignment of express along with importing the main export itself:
const express, {static: expressStatic, json, urlencoded} = require("express");
However it fails:
const express, {static: expressStatic, json, urlencoded} = require("express");
^^^^^^^
SyntaxError: Missing initializer in const declaration
What's the right way to do it?