How to dealing with huge directory in node?

Suppose that I have a directory with millions of files. I want to walk through all the files in the directory with as small memory footprint as possible.