Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

running shell commands nodejs

const system = require('system-commands')

system('ls').then(output => {
    console.log(output)
}).catch(error => {
    console.error(error)
})
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #running #shell #commands #nodejs
ADD COMMENT
Topic
Name
3+6 =