I need to list all the files in the javascript such as \"ls\"??
An even easier way in node.js is:
var fs = require('fs'); var ls = fs.readdirSync('/usr');
The variable ls now contains an array with the filenames at /usr.
ls