module-investigator

Find AMD and CommonJS style dependencies. Report information about format adherence.

Collects information about module format adherence (AMD/CommonJS) and dependencies in one AST parse.

usage

Just feed it the source

var investigator = require("module-investigator");
investigator(fileSrc);

or

investigate path/to/file