Advertisement
martinez18

Path Test

Aug 28th, 2017
118
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. const { execFile } = require('child_process');
  2.  
  3. // Execute the stdin.js test file
  4. const child = execFile('node', ['stdin']);
  5.  
  6. child.stdout.on('data', (data) => {
  7.     console.log(data);
  8. });
  9.  
  10. // Send the path
  11. child.stdin.end("./");
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement