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

apache - Cloudflare bug random 302 redirections -

java - Sql binding in Spring throws org.skife.jdbi.v2.exceptions.UnableToExecuteStatementException -