create cat command in node js code example
Example: cat command implementation using node js
"cat": function (fullPath){ const fileName = fullPath[0]; fs.readFile(fileName, (err, data) => { if (err) throw err; console.log(data); done(data);});