node.js - Get folder in which the command was invoked in nodejs -



node.js - Get folder in which the command was invoked in nodejs -

i want folder command invoked.

for illustration running gulp taskname , calls on functions on bunch of other files need reference folder gulp invoked.

it sounds you're after current working directory. node provides function can phone call on process.

process.cwd()

i can't mind read, interpret cwd "current working directory."

http://nodejs.org/api/process.html#process_process_cwd

node.js gulp

Comments

Popular posts from this blog

php - Android app custom user registration and login with cookie using facebook sdk -

django - Access session in user model .save() -

php - .htaccess Multiple Rewrite Rules / Prioritizing -