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

Regex find and replace between <div class="customclass"> and </div> tag -

jpa - Passing entitymanager from reflection method -