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

Python Kivy ListView: How to delete selected ListItemButton? -

asp.net mvc 4 - A specified Include path is not valid. The EntityType '' does not declare a navigation property with the name '' -