Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SHELL

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
6+6 =