0

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.

Joshua Morris
  • 91
  • 1
  • 6

1 Answers1

6

The command is DIR to list all the directories and files in a directory in the nodejs command prompt window.

Joshua Morris
  • 91
  • 1
  • 6