I'm looking for a way to list files and directories from the command line in node.js. For example in Linux there is a command ls that will list files and directories in the current directory.
Edit: No I don't mean fs.filesync. I mean a console command to list the contents of the current directory in the Node.js command prompt. Like chdir or ls or mkdir.