Created
April 23, 2014 14:00
-
-
Save chandu/11216253 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var modules= require('modules'); | |
var jquery = require(modules.jquery); | |
/// Do something with the jquery |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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