Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Fetching contributors…

Cannot retrieve contributors at this time

23 lines (20 sloc) 0.432 kB
#!/usr/bin/env node
var Module = require('module').Module,
__load = Module._load,
packages = {};
//
// Monkey punch `Module._load()` to observe the names
// of packages as they are loaded.
//
Module._load = function (name) {
console.log(name);
return __load.apply(Module, arguments);
}
try {
require(process.argv[2]);
}
catch (ex) {
//
// Ignore errors and attempt to log as many packages as we can.
//
}
Jump to Line
Something went wrong with that request. Please try again.