I'm trying to create an npm package that checks for images not imported.
How do I direct javascript to loop through a directory and pass the file paths into an array?
I then want to loop through another directory and check if those files contain the file path as a string.
I just can't seem to find any examples of extracting file paths dynamically from a directory, and I'd appreciate any guidance.