I am trying to parse xml file to json and then bulk index it into elastic search. This is my code:
require(\'array.prototype.flatmap\').shim() const fs = require(