Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- const { execFile } = require('child_process');
- // Execute the stdin.js test file
- const child = execFile('node', ['stdin']);
- child.stdout.on('data', (data) => {
- console.log(data);
- });
- // Send the path
- child.stdin.end("./");
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement