Trouble creating Binance instance in binance-api-node "Getting started" code

Hi all, newbie here! I just downloaded the binance-api-node code from github into my node.js project.

After installing the package, when trying to run the included getting started code:

import Binance from 'binance-api-node';
const client = Binance();

// Authenticated client, can make signed calls
const client2 = new Binance({
  apiKey: 'xxx',
  apiSecret: 'xxx',
  getTime: xxx,
});

client.time().then(time => console.log(time));

I’m getting this error:
Uncaught TypeError: Binance is not a function

I also tried:
const client = new Binance();
but I get another error saying Binance is not a constructor.
Any help will be appreciated
Thanks

Please contact the owner of the project regarding any issues. I suggest using the Github Issues feature.

This forum is for Binance API related discussion.