Mixpanel JQL Client
constClient=require('mixpanel-jql');constclient=newClient('mixpanel secret here');// query data from mixpanelclient.query().codes('function main() {...}')// or .file('./filepath').params({//...}).send().then(result=>console.log(result)).catch(err=>console.log(err));// generate scriptclient.query().codes('function main() {...}')// or .file('./filepath').params({//...}).generateScript().then(script=>console.log(script));