I found the following, via Google, for finding all the files in a folder on the server (replace “” in the 2nd line with your folder name):
var fs = require(‘fs’);
var files = fs.readdirSync(‘//’);
WRT icons, I have found Font Awesome to be great (er, awesome ); for your specific needs, check out Find Icons with the Perfect Look & Feel | Font Awesome.