I'm relatively new to JavaScript programming for node.js, and I've been
reading about this for 5 hours and cannot wrap my head around it, so here I
am... I am trying to get the text from a PDF for searching. I need page
numbers, line numbers, and character positions of the results. It appears
t
node.js 14.4.0 macOS Catalina, Visual Studio Code debugging. Line 11 in my
app.mjs file is var FileSystem = require('fs'); The debugger throws
"require is not defined" error on this line. Comment this line out and the
debugger throws an error on line 23 which is var PDFImage =
require('pdf-imag