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
Post a Comment