Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

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/
Source by www.sitepoint.com #
 
PREVIOUS NEXT
Tagged: #javascript #shell
ADD COMMENT
Topic
Name
1+9 =