Answers for "javascript shell"

0

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/
Posted by: Guest on July-27-2021

Code answers related to "Javascript"

Browse Popular Code Answers by Language