Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

javascript run command

const { execSync } = require('child_process');

const output = execSync('ls', { encoding: 'utf-8' });

console.log('The output is:');
console.log(output);
 
PREVIOUS NEXT
Tagged: #javascript #run #command
ADD COMMENT
Topic
Name
9+1 =