1const { exec } = require("child_process");
2exec("cat index.js", (error, data, getter) => {
3 if(error){
4 console.log("error",error.message);
5 return;
6 }
7 if(getter){
8 console.log("data",data);
9 return;
10 }
11 console.log("data",data);
12
13});
14