Install npm modules below
npm install @azure/event-hubs@5.0.0-preview.2
Use Node.js >=10 and run the below where Eugenio.getDatastreamInfo is https://portal.stg.eugenio.io/api/v1/apis/datastream?swagger-ui#/Data%20Stream/get_datastream
const { EventHubClient, EventPosition } = require("@azure/event-hubs");
async function main() {