How to read all files in a directory using JavaScript

854 views Asked by At

I have some json (along with other files types) files in a directory which I need read (only json) from that directory.

It should work like an iterator, iterates over and over until all the files are read.

My Question is how can I iterate over all the files in a directory? How can I do so using JavaScript? I am using Unix system and need that thing to work for Firefox, Chrome, Safari.

(My question is not basically how to read JSON files)

0

There are 0 answers