Skip to content

Instantly share code, notes, and snippets.

@tobie
Forked from dandean/modulr-node-test.js
Created December 13, 2011 08:33
Show Gist options
  • Select an option

  • Save tobie/1471227 to your computer and use it in GitHub Desktop.

Select an option

Save tobie/1471227 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