Collects information about module format adherence (AMD/CommonJS) and dependencies in one AST parse.
Just feed it the source
var investigator = require("module-investigator"); investigator(fileSrc);
or
investigate path/to/file