Skip to content

Instantly share code, notes, and snippets.

@dandean
Created December 13, 2011 08:04
Show Gist options
  • Save dandean/1471180 to your computer and use it in GitHub Desktop.
Save dandean/1471180 to your computer and use it in GitHub Desktop.
modulr-node search paths
// 1. Collect our modules, using the specified directories...
require('modulr').build('client',
{
isPackageAware: true,
paths: ['.','./node_modules'],
},
function(e, result) {
if (e) {
throw e;
}
console.log(result);
}
);
// 2. Done!
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment