Require selectFile.js, call passing a directory (or dont, it will start in current working dir) and receive a list of directiories and files. Pressing enter will enter a directory or have the function return the full file name.
NPM package is here: https://www.npmjs.com/package/selectfile