javascript - Run command in particular directory with NodeJS -


i building desktop app in html, css , typescript brackets core. question is: possible run command node.js? want go cd directory , run grunt serve.

i have searched google , node site, couldn't find anything.

thanks

sven

http://nodejs.org/api/child_process.html

child_process.exec('shell command', {cwd: 'current work dir'}, function(err, stdout, stderr) {}); 

Comments

Popular posts from this blog

php - Submit Form Data without Reloading page -

linux - Rails running on virtual machine in Windows -

php - $params->set Array between square bracket -