Hello! I can’t help yet, I’m afraid, but do you mind clarifying a few things about your use case?
- What primary goal here? What would you do with this file?
- Does
console.log('\tDBG: '+ doc)
log what you want? Maybe you could use the--log-output
option to write this to a file. - For more complex writes, you might need to use an extension, for the reasons explained in this post Write data to file - #2 by imiric