Skip to content

Instantly share code, notes, and snippets.

@AvianFlu
Created September 13, 2011 21:18
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save AvianFlu/1215203 to your computer and use it in GitHub Desktop.
Save AvianFlu/1215203 to your computer and use it in GitHub Desktop.
Require analyzer test script
var analyzer = require('require-analyzer');
var options = {
target: process.argv[2]
};
var deps = analyzer.analyze(options, function (err, pkgs) {
//
// Log all packages that were discovered
//
console.log('packages:');
console.dir(pkgs);
console.dir(analyzer.extractVersions(pkgs));
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment