I have a project where I need to be able to automatically find all the dependancies of a script.
Just so you know, this isn't something that can be done reliably. A script could determine some dependencies programatically and load them at runtime with require, eval, or do. Your attempts and BrowserUk's solution will only tell you what has been loaded with use. If that's your whole requirement, then you're doing fine. :-)
-sauoq "My two cents aren't worth a dime.";
In reply to Re: Finding dependancies of a script
by sauoq
in thread Finding dependancies of a script
by fletcher_the_dog
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |