javascript shell
just a simple script for javascript shell
const fs = require('fs');
function buildTree(startPath) {
fs.readdir(startPath, (err, entries) => {
console.log(entries);
});
}
buildTree('/home/jim/Desktop/theme');
for extra info visit below link
https://www.sitepoint.com/shell-scripts-javascript/