I have this method :
// Parse a whole file
fs.readFile("klv-file.klv", (err, file) => {
var KLVdata = KLV.parseKLVfile(file, options);
var packets = KLVdata.packets;
var nDropped = KLVdata.nDropped;
});
in a small Node app.
How to I get the variable packets outside this object?