In other words can I do this :
import Binance from 'binance-api-node' const client = Binance()
with a require() statement ??
The above code needs to be in a small module I have to write so I cannot use import
Advertisement
Answer
const Binance = require('binance-api-node').default; const client = Binance();