module-investigator

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

npm install module-investigator
10 downloads in the last week
21 downloads in the last month

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
npm loves you