Skip to content
This repository was archived by the owner on Jan 8, 2019. It is now read-only.

Conversation

@lrascao
Copy link

@lrascao lrascao commented Jun 27, 2014

loadCurrentScriptDeps_ obtains the current script being executed through:
var file = process.argv[process.argv.length - 1];
it then uses the directory where this file is contained to load the deps.js file.
If command line arguments are passed to the script (eg. node script.js -l) then deps.js will not be loaded since process.argv.length - 1 is -l

loadCurrentScriptDeps_ obtains the current script being executed through:
var file = process.argv[process.argv.length - 1];
it then uses the directory where this file is contained to load the deps.js file.
If command line arguments are passed to the script (eg. node script.js -l) then deps.js will not be loaded since process.argv.length - 1 is -l
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant