Skip to content

Instantly share code, notes, and snippets.

@chandu
Created April 23, 2014 14:00
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 chandu/11216253 to your computer and use it in GitHub Desktop.
Save chandu/11216253 to your computer and use it in GitHub Desktop.
var modules= require('modules');
var jquery = require(modules.jquery);
/// Do something with the jquery
var bower = require('bower');
//I want to get the list of the modules synchronously in the next statement, am not sure if this is possible
var modulesList = bower.commands.list({
});
var toReturn = <Create a MAP of the modules>;
module.exports = toReturn;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment